1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00

make app wait for db to start up first

Fix for #163 
Prevents using memory database if db is still starting up
This commit is contained in:
Dhaval Soneji 2020-06-25 12:28:35 +01:00 committed by GitHub
parent 64b8593035
commit 8c5a62d645
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,7 +26,7 @@ services:
pigallery2:
image: bpatrik/pigallery2:latest
command: --Server-Database-mysql-host=pigallery-db --Server-Database-mysql-username=pigallery2 --Server-Database-mysql-password=pigallery2_pass--Server-Database-mysql-database=pigallery2
command: sh -c 'bin/wait-for pigallery-db:3306 -- --Server-Database-mysql-host=pigallery-db --Server-Database-mysql-username=pigallery2 --Server-Database-mysql-password=pigallery2_pass--Server-Database-mysql-database=pigallery2'
container_name: pigallery2
environment:
- NODE_ENV=production