Docker fix (#114)
* fix: db healthcheck * fixed missing front build argument * fix: db healthcheck user * message from db 'user' doesnt exist fixed * rm: useless yarn Co-authored-by: GitBluub <louis.auzuret@gmail.com>
This commit is contained in:
@@ -10,7 +10,8 @@ services:
|
||||
- ./back:/app
|
||||
- ./musics:/musics
|
||||
depends_on:
|
||||
- "db"
|
||||
db:
|
||||
condition: service_healthy
|
||||
env_file:
|
||||
- .env
|
||||
|
||||
@@ -21,5 +22,10 @@ services:
|
||||
- POSTGRES_USER=${POSTGRES_USER}
|
||||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
||||
- POSTGRES_DB=${POSTGRES_DB}
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
ports:
|
||||
- "5432:5432"
|
||||
|
||||
Reference in New Issue
Block a user