diff --git a/services/postgres.yml b/services/postgres.yml index 5d8408b..788586b 100644 --- a/services/postgres.yml +++ b/services/postgres.yml @@ -8,4 +8,12 @@ services: ipv4_address: 192.168.240.25 volumes: - "${DOCKER_STORAGE_PATH}/postgres:/var/lib/postgresql/data" - restart: unless-stopped \ No newline at end of file + restart: unless-stopped + healthcheck: + interval: 30s + retries: 5 + start_period: 20s + test: + - CMD-SHELL + - pg_isready + timeout: 5s \ No newline at end of file