feat(postgres): add shared database deployments

This commit is contained in:
forust committed 2026-09-14 10:25:45 +02:00
1 parent 24d3686f60
commit fe32d0319c
9 files changed
+255

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
services:
postgres:
image: postgres:15.19-alpine
container_name: homelab-postgres
restart: unless-stopped
env_file:
- .env
environment:
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: ${POSTGRES_ADMIN_PASSWORD:?set POSTGRES_ADMIN_PASSWORD}
volumes:
- postgres-data:/var/lib/postgresql/data
- ./initdb:/docker-entrypoint-initdb.d:ro
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d postgres"]
interval: 10s
timeout: 5s
retries: 5
networks:
- database
volumes:
postgres-data:
networks:
database:
name: homelab-database