feat(dc): move postgres to external db

This commit is contained in:
Radu C. Martin 2025-05-27 20:50:07 +00:00
parent 84e53248cb
commit 60456872c3

View file

@ -20,25 +20,7 @@ services:
- "traefik.http.services.spliit.loadbalancer.server.port=${DC_SPLIIT_PORT:?}" - "traefik.http.services.spliit.loadbalancer.server.port=${DC_SPLIIT_PORT:?}"
networks: networks:
- traefik - traefik
- spliit
db:
image: postgres:17.5@sha256:6efd0df010dc3cb40d5e33e3ef84acecc5e73161bd3df06029ee8698e5e12c60
environment:
- TZ=Europe/Zurich
- POSTGRES_DB=${DC_SPLIIT_POSTGRES_DB:-spliit}
- POSTGRES_USER=${DC_SPLIIT_POSTGRES_USER:-spliit}
- POSTGRES_PASSWORD=${DC_SPLIIT_POSTGRES_PASS:?}
volumes:
- postgres:/var/lib/postgresql/data
restart: always
networks:
- spliit
networks: networks:
traefik: traefik:
external: true external: true
spliit:
volumes:
postgres: