diff --git a/docker-compose.yml b/docker-compose.yml index df84d91..61ea11d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,6 +9,12 @@ services: POSTGRES_DB: ${DB_NAME} volumes: - postgis:/var/lib/postgresql/data + healthcheck: + test: "pg_isready -h postgis -U ${DB_USER} -d ${DB_NAME}" + interval: 10s + timeout: 2s + retries: 5 + start_period: 10s redmine: build: @@ -22,7 +28,8 @@ services: - ./plugins:/usr/src/redmine/plugins - ./public/themes:/usr/src/redmine/public/themes depends_on: - - postgis + postgis: + condition: service_healthy volumes: postgis: