hedgedoc : rename to container-compose.yml + PostgreSQL healthcheck

This commit is contained in:
Gitouche 2023-08-10 21:47:54 +02:00
parent 7a989baf6d
commit dcaa490e34

View file

@ -20,6 +20,11 @@ services:
# - POSTGRES_DB=hedgedoc # - POSTGRES_DB=hedgedoc
volumes: volumes:
- database:/var/lib/postgresql/data - database:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
networks: networks:
backend: backend:
#restart: always #restart: always