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,14 +7,19 @@ services:
postgres:
image: postgres
volumes:
- /srv/containers/gatus/db:/var/lib/postgresql/data
- /srv/containers/gatus/database:/var/lib/postgresql/data
ports:
- "5432:5432"
env_file:
- stack.env
networks:
docker_network:
ipv4_address: 192.168.5.9
docker_network:
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:
image: twinproduction/gatus:latest
@ -26,18 +31,18 @@ services:
volumes:
- /srv/containers/gatus/config:/config
depends_on:
- postgres
postgres:
condition: service_healthy
dns:
- 192.168.3.25
- 192.168.3.26
networks:
docker_network:
ipv4_address: 192.168.5.8
docker_network:
ipv4_address: 192.168.5.8
networks:
docker_network:
external: true
```
```jsx title=".env"