whoopz
This commit is contained in:
parent
25f771cdd7
commit
db6b974617
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
until nc -z ${DATABASE_HOST} ${DATABASE_PORT} > /dev/null; do
|
||||
echo "Waiting for database to become available on ${DATABASE_HOST}:${DATABASE_PORT}..."
|
||||
until nc -z ${POSTGRES_HOST} ${POSTGRES_PORT} > /dev/null; do
|
||||
echo "Waiting for database to become available on ${POSTGRES_HOST}:${POSTGRES_PORT}..."
|
||||
sleep 1
|
||||
done
|
||||
|
||||
|
|
|
@ -6,12 +6,15 @@ services:
|
|||
POSTGRES_USER: ${POSTGRES_USER}
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
||||
ports:
|
||||
- "${POSTGRES_PORT}:${POSTGRES_PORT}"
|
||||
- "${POSTGRES_PORT}:5432"
|
||||
volumes:
|
||||
- ./deployment/postgres/data:/var/lib/postgresql/data
|
||||
- ./deployment/postgres/data:/var/lib/postgresql/data
|
||||
frogress:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: deployment/frogress/Dockerfile
|
||||
ports:
|
||||
- "${BACKEND_PORT}:${BACKEND_PORT}"
|
||||
environment:
|
||||
POSTGRES_HOST: ${POSTGRES_HOST}
|
||||
POSTGRES_PORT: 5432
|
||||
|
|
Loading…
Reference in New Issue