mirror of
https://github.com/TwiN/gatus.git
synced 2026-08-22 15:16:04 +00:00
Postgres 18 moved its declared volume to /var/lib/postgresql, so the example container fails to start with the old path. Signed-off-by: vshulcz <vshulcz@gmail.com>
35 lines
739 B
YAML
35 lines
739 B
YAML
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
|
|
ports:
|
|
- "5432:5432"
|
|
environment:
|
|
- POSTGRES_DB=gatus
|
|
- POSTGRES_USER=username
|
|
- POSTGRES_PASSWORD=password
|
|
networks:
|
|
- web
|
|
|
|
gatus:
|
|
image: twinproduction/gatus:latest
|
|
restart: always
|
|
ports:
|
|
- "8080:8080"
|
|
environment:
|
|
- POSTGRES_USER=username
|
|
- POSTGRES_PASSWORD=password
|
|
- POSTGRES_DB=gatus
|
|
volumes:
|
|
- ./config:/config
|
|
networks:
|
|
- web
|
|
depends_on:
|
|
- postgres
|
|
|
|
networks:
|
|
web:
|