Files
gatus/.examples/docker-compose-postgres-storage/compose.yaml
T

34 lines
739 B
YAML
Raw Normal View History

2021-09-10 19:21:43 -04:00
services:
postgres:
image: postgres
volumes:
# PostgreSQL 18 and above declare the volume at /var/lib/postgresql.
# For 17 and earlier, mount ./data/db at /var/lib/postgresql/data instead.
- ./data/db:/var/lib/postgresql
2021-09-11 17:48:50 -04:00
ports:
- "5432:5432"
2021-09-10 19:21:43 -04:00
environment:
- POSTGRES_DB=gatus
- POSTGRES_USER=username
- POSTGRES_PASSWORD=password
networks:
- web
gatus:
image: twinproduction/gatus:latest
restart: always
ports:
2021-09-10 20:03:51 -04:00
- "8080:8080"
environment:
- POSTGRES_USER=username
- POSTGRES_PASSWORD=password
- POSTGRES_DB=gatus
2021-09-10 19:21:43 -04:00
volumes:
- ./config:/config
2021-09-10 19:21:43 -04:00
networks:
- web
depends_on:
- postgres
networks:
web: