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
2
docker/development/data/mysql/.gitignore
vendored
Normal file
2
docker/development/data/mysql/.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
*
|
||||
!.gitignore
|
2
docker/production/config/mysql.conf.d/.gitignore
vendored
Normal file
2
docker/production/config/mysql.conf.d/.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
*
|
||||
!.gitignore
|
2
docker/production/data/mysql/.gitignore
vendored
Normal file
2
docker/production/data/mysql/.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
*
|
||||
!.gitignore
|
13
docker/production/start-api.sh
Executable file
13
docker/production/start-api.sh
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/bash
|
||||
|
||||
# This wrapper script is used for two purposes:
|
||||
# 1. Waiting for the prepare_backend container to finish before starting (see https://github.com/docker/compose/issues/5007#issuecomment-335815508)
|
||||
# 2. Forwarding signals to the app (see https://unix.stackexchange.com/a/196053)
|
||||
|
||||
# Wait for the backend preparations to finish before continuing
|
||||
echo "Waiting for prepare_backend to finish before starting the API..."
|
||||
while ping -c1 prepare_backend &>/dev/null; do sleep 1; done;
|
||||
|
||||
echo "Starting the API"
|
||||
cd /zeppelin/backend
|
||||
exec npm run start-api-prod
|
13
docker/production/start-bot.sh
Normal file
13
docker/production/start-bot.sh
Normal file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/bash
|
||||
|
||||
# This wrapper script is used for two purposes:
|
||||
# 1. Waiting for the prepare_backend container to finish before starting (see https://github.com/docker/compose/issues/5007#issuecomment-335815508)
|
||||
# 2. Forwarding signals to the app (see https://unix.stackexchange.com/a/196053)
|
||||
|
||||
# Wait for the backend preparations to finish before continuing
|
||||
echo "Waiting for prepare_backend to finish before starting the bot..."
|
||||
while ping -c1 prepare_backend &>/dev/null; do sleep 1; done;
|
||||
|
||||
echo "Starting the bot"
|
||||
cd /zeppelin/backend
|
||||
exec npm run start-bot-prod
|
Loading…
Add table
Add a link
Reference in a new issue