- Add healthcheck example in compose file.
This commit is contained in:
parent
8f3ea49795
commit
4d46bd66d3
@ -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
|
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,
|
- Variabilization of external server ports in env & compose file,
|
||||||
- Now use docker_tools for .env building.
|
- Now use docker_tools for .env building.
|
||||||
|
|
||||||
|
@ -29,6 +29,12 @@ services:
|
|||||||
POSTGRESQL_USER: ${POSTGRESQL_USER}
|
POSTGRESQL_USER: ${POSTGRESQL_USER}
|
||||||
POSTGRESQL_PASSWORD: ${POSTGRESQL_PASSWORD}
|
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:
|
volumes:
|
||||||
- ./var/lib/pgsql/data:/var/lib/pgsql/data
|
- ./var/lib/pgsql/data:/var/lib/pgsql/data
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user