Update Servers/Containerization/Docker/Compose/Gatus.md

This commit is contained in:
2025-02-05 20:50:44 -07:00
parent 53bd5f4902
commit 7a17e1910e

View File

@ -7,7 +7,7 @@ services:
postgres: postgres:
image: postgres image: postgres
volumes: volumes:
- /srv/containers/gatus/db:/var/lib/postgresql/data - /srv/containers/gatus/database:/var/lib/postgresql/data
ports: ports:
- "5432:5432" - "5432:5432"
env_file: env_file:
@ -15,6 +15,11 @@ services:
networks: networks:
docker_network: docker_network:
ipv4_address: 192.168.5.9 ipv4_address: 192.168.5.9
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-postgres} -d ${POSTGRES_DB:-postgres}"]
interval: 10s
retries: 5
start_period: 30s
gatus: gatus:
image: twinproduction/gatus:latest image: twinproduction/gatus:latest
@ -26,7 +31,8 @@ services:
volumes: volumes:
- /srv/containers/gatus/config:/config - /srv/containers/gatus/config:/config
depends_on: depends_on:
- postgres postgres:
condition: service_healthy
dns: dns:
- 192.168.3.25 - 192.168.3.25
- 192.168.3.26 - 192.168.3.26
@ -37,7 +43,6 @@ services:
networks: networks:
docker_network: docker_network:
external: true external: true
``` ```
```jsx title=".env" ```jsx title=".env"