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:
parent
f0a96de371
commit
61f8b1579b
13 changed files with 129 additions and 61 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue