3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-14 21:31:50 +00:00
zeppelin/docker-compose.lightweight.yml
Martin 3d71684633
Fixing docker-compose lightweight migration workking_dir
Working_dir was fixed in the docker-compose standalone but not in the lightweight version
2024-03-31 17:50:19 +02:00

58 lines
1.2 KiB
YAML

version: '3'
name: zeppelin-prod
services:
migrate:
build: &build
context: .
args:
# Used at compile-time by dashboard
API_URL:
environment:
HOST_MODE: lightweight
env_file:
- .env
working_dir: /zeppelin/backend
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"]