From d573c201c736ea5a591b740910a5c6c299961d5b Mon Sep 17 00:00:00 2001 From: tariqksoliman Date: Wed, 29 Jan 2025 14:10:11 -0800 Subject: [PATCH] #622 Update docker-compose.sample --- docker-compose.sample.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docker-compose.sample.yml b/docker-compose.sample.yml index 03a0d4b2..c927771c 100644 --- a/docker-compose.sample.yml +++ b/docker-compose.sample.yml @@ -19,9 +19,9 @@ services: "-k", "http://mmgis:8888/API/utils/healthcheck", ] - interval: 10s - retries: 10 - start_period: 10s + interval: 20s + retries: 5 + start_period: 15s timeout: 8s restart: on-failure volumes: @@ -193,11 +193,12 @@ services: image: postgis/postgis:16-3.4-alpine env_file: .env environment: + - POSTGRES_USER=${DB_USER} - POSTGRES_PASSWORD_OFF=Rename to 'POSTGRES_PASSWORD' and replace this with an initial root password for the DB ports: - 5432 healthcheck: - test: ["CMD-SHELL", "pg_isready"] + test: ["CMD-SHELL", "pg_isready -d postgres -U ${DB_USER}"] interval: 10s retries: 10 start_period: 10s