- Add healthcheck example in compose file.

This commit is contained in:
AlkorZ3 committed 2024-10-29 09:12:02 +01:00
1 parent 8f3ea49795
commit 4d46bd66d3
2 files changed
+15 -1

No files matched your search

+9 -1
View File
@@ -1,8 +1,16 @@
------------------------------------------------------------------------------------------------------------------------------------
Rx3/PostgreSQL-Mga9 V 1.0.3 - A. GIBERT - 2024/11/xx
------------------------------------------------------------------------------------------------------------------------------------
- Add healthcheck example in compose file.
------------------------------------------------------------------------------------------------------------------------------------
Rx3/PostgreSQL-Mga9 V 1.0.2 - A. GIBERT - 2024/10/05
------------------------------------------------------------------------------------------------------------------------------------
- Now use server-mga9:1.1.3 image,
- Now use rx3/server-mga9:1.1.3 image,
- Variabilization of external server ports in env & compose file,
- Now use docker_tools for .env building.
+6
View File
@@ -29,6 +29,12 @@ services:
POSTGRESQL_USER: ${POSTGRESQL_USER}
POSTGRESQL_PASSWORD: ${POSTGRESQL_PASSWORD}
healthcheck:
test: ["CMD-SHELL", "sh -c 'pg_isready -U ${POSTGRESQL_USER} -d ${POSTGRESQL_DATABASE}'"]
interval: 10s
timeout: 3s
retries: 3
volumes:
- ./var/lib/pgsql/data:/var/lib/pgsql/data