3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-15 05:41:51 +00:00
zeppelin/docker-compose.lightweight.yml

62 lines
1.3 KiB
YAML
Raw Normal View History

version: '3'
name: zeppelin-prod
services:
migrate:
depends_on:
mysql:
condition: service_healthy
build: &build
context: .
args:
# Used at compile-time by dashboard
API_URL:
environment:
HOST_MODE: lightweight
env_file:
- .env
working_dir: /zeppelin
command: ["npm", "run", "migrate-prod"]
api:
depends_on:
migrate:
condition: service_completed_successfully
build: *build
restart: on-failure
environment:
HOST_MODE: lightweight
env_file:
- .env
ports:
- "${LIGHTWEIGHT_API_PORT}:3001"
working_dir: /zeppelin/backend
command: ["npm", "run", "start-api-prod"]
bot:
depends_on:
migrate:
condition: service_completed_successfully
build: *build
restart: on-failure
environment:
HOST_MODE: lightweight
env_file:
- .env
working_dir: /zeppelin/backend
command: ["npm", "run", "start-bot-prod"]
dashboard:
depends_on:
migrate:
condition: service_completed_successfully
build: *build
restart: on-failure
environment:
HOST_MODE: lightweight
env_file:
- .env
ports:
- "${LIGHTWEIGHT_DASHBOARD_PORT}:3002"
working_dir: /zeppelin/dashboard
command: ["node", "serve.js"]