forked from medusajs/medusa-eats
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathzerops.yml
More file actions
58 lines (58 loc) · 1.74 KB
/
Copy pathzerops.yml
File metadata and controls
58 lines (58 loc) · 1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
zerops:
- setup: backend
build:
envVariables:
BACKEND_URL: ${RUNTIME_zeropsSubdomain}
base: nodejs@20
buildCommands:
- |
cd backend
yarn
yarn build
deployFiles:
- ./backend/~
run:
base: nodejs@20
envVariables:
DATABASE_TYPE: postgres
NODE_ENV: production
BACKEND_URL: ${zeropsSubdomain}
FRONTEND_URL: ${frontend_zeropsSubdomain}
DATABASE_URL: postgresql://${db_user}:${db_password}@${db_hostname}:5432/${db_hostname}
MINIO_BUCKET: ${storage_bucketName}
MINIO_ENDPOINT: ${storage_apiUrl}
MINIO_SECRET_KEY: ${storage_secretAccessKey}
MINIO_ACCESS_KEY: ${storage_accessKeyId}
REDIS_URL: redis://${redis_hostname}:6379
EVENTS_REDIS_URL: redis://${redis_hostname}:6379
initCommands:
- zsc execOnce ${appVersionId}_migration npx medusa migrations run
- zsc execOnce ${appVersionId}_links npx medusa links sync
- zsc execOnce -r initialData npx medusa exec ./src/scripts/seed.ts
- zsc execOnce -r initialAdmin -- npx medusa user -e admin@email.com -p $SUPERADMIN_PASSWORD
ports:
- port: 9000
httpSupport: true
start: yarn start
- setup: frontend
build:
base: nodejs@20
buildCommands:
- |
cd frontend
yarn
yarn build
deployFiles:
- frontend/~.next
- frontend/~package.json
- frontend/~next.config.mjs
- frontend/~node_modules
- frontend/~public
run:
base: nodejs@20
start: yarn start
ports:
- port: 3000
httpSupport: true
envVariables:
BACKEND_URL: ${backend_zeropsSubdomain}