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

Merge pull request #164 from overclockedllama/patch-2

make app wait for db to start up first
This commit is contained in:
Patrik J. Braun 2020-06-26 13:39:34 +02:00 committed by GitHub
commit 3deb8e26f5
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