feat(postgres): add shared database deployments

This commit is contained in:
forust authored and forust committed 2026-09-17 17:55:50 +00:00
1 parent cdc2f10fe8
commit 52e1f50a80
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