2024-03-17 18:49:31 +02:00
|
|
|
version: '3'
|
|
|
|
name: zeppelin-prod
|
|
|
|
services:
|
|
|
|
migrate:
|
2024-03-30 15:51:04 +00:00
|
|
|
build: &build
|
2024-03-17 18:49:31 +02:00
|
|
|
context: .
|
2024-03-30 15:51:04 +00:00
|
|
|
args:
|
|
|
|
# Used at compile-time by dashboard
|
|
|
|
API_URL:
|
2024-03-17 18:49:31 +02:00
|
|
|
environment:
|
|
|
|
HOST_MODE: lightweight
|
2024-03-30 15:51:04 +00:00
|
|
|
env_file:
|
|
|
|
- .env
|
2024-03-17 18:49:31 +02:00
|
|
|
working_dir: /zeppelin
|
|
|
|
command: ["npm", "run", "migrate-prod"]
|
|
|
|
|
|
|
|
api:
|
|
|
|
depends_on:
|
|
|
|
migrate:
|
|
|
|
condition: service_completed_successfully
|
2024-03-30 15:51:04 +00:00
|
|
|
build: *build
|
2024-03-17 18:49:31 +02:00
|
|
|
restart: on-failure
|
|
|
|
environment:
|
|
|
|
HOST_MODE: lightweight
|
2024-03-30 15:51:04 +00:00
|
|
|
env_file:
|
|
|
|
- .env
|
2024-03-17 18:49:31 +02:00
|
|
|
ports:
|
|
|
|
- "${LIGHTWEIGHT_API_PORT}:3001"
|
|
|
|
working_dir: /zeppelin/backend
|
|
|
|
command: ["npm", "run", "start-api-prod"]
|
|
|
|
|
|
|
|
bot:
|
|
|
|
depends_on:
|
|
|
|
migrate:
|
|
|
|
condition: service_completed_successfully
|
2024-03-30 15:51:04 +00:00
|
|
|
build: *build
|
2024-03-17 18:49:31 +02:00
|
|
|
restart: on-failure
|
|
|
|
environment:
|
|
|
|
HOST_MODE: lightweight
|
2024-03-30 15:51:04 +00:00
|
|
|
env_file:
|
|
|
|
- .env
|
2024-03-17 18:49:31 +02:00
|
|
|
working_dir: /zeppelin/backend
|
|
|
|
command: ["npm", "run", "start-bot-prod"]
|
|
|
|
|
|
|
|
dashboard:
|
|
|
|
depends_on:
|
|
|
|
migrate:
|
|
|
|
condition: service_completed_successfully
|
2024-03-30 15:51:04 +00:00
|
|
|
build: *build
|
2024-03-17 18:49:31 +02:00
|
|
|
restart: on-failure
|
|
|
|
environment:
|
|
|
|
HOST_MODE: lightweight
|
2024-03-30 15:51:04 +00:00
|
|
|
env_file:
|
|
|
|
- .env
|
2024-03-17 18:49:31 +02:00
|
|
|
ports:
|
|
|
|
- "${LIGHTWEIGHT_DASHBOARD_PORT}:3002"
|
|
|
|
working_dir: /zeppelin/dashboard
|
|
|
|
command: ["node", "serve.js"]
|