3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-10 20:35:02 +00:00

feat: more work on prod docker setup

This commit is contained in:
Dragory 2022-08-06 22:18:21 +03:00
parent f0a96de371
commit 61f8b1579b
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1
13 changed files with 129 additions and 61 deletions

View file

@ -1,7 +1,5 @@
version: '3'
name: zeppelin-prod
volumes:
mysql-data: {}
services:
nginx:
build:
@ -24,7 +22,7 @@ services:
ports:
- ${DOCKER_PROD_MYSQL_PORT:?Missing DOCKER_PROD_MYSQL_PORT}:3306
volumes:
- mysql-data:/var/lib/mysql
- ./docker/production/data/mysql:/var/lib/mysql
command: --authentication-policy=mysql_native_password
prepare_backend:
@ -44,15 +42,18 @@ services:
- prepare_backend
volumes:
- ./:/zeppelin
# Wait for the build_backend container to finish before starting the bot
# See: https://github.com/docker/compose/issues/5007#issuecomment-335815508
user: node
command: |-
bash -c ' \
while ping -c1 prepare_backend &>/dev/null; do sleep 1; done; \
cd /zeppelin/backend && npm run start-api-prod \
'
command: ["/bin/bash", "/zeppelin/docker/production/start-api.sh"]
bot:
image: node:16.16
restart: on-failure
depends_on:
- prepare_backend
volumes:
- ./:/zeppelin
user: node
command: ["/bin/bash", "/zeppelin/docker/production/start-bot.sh"]
build_dashboard:
image: node:16.16