Add central postgres instance

This commit is contained in:
Peter Smit
2026-03-08 16:05:21 +01:00
parent 916bfa53a2
commit d735f5e310
7 changed files with 582 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
services:
postgres:
build: .
container_name: postgres
restart: always
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
POSTGRES_USER: admin
POSTGRES_PASSWORD: ${POSTGRES_ADMIN_PASSWORD}
ports:
- "5432:5432"
networks:
- default
healthcheck:
test: ["CMD-SHELL", "pg_isready -U admin"]
interval: 5s
timeout: 5s
retries: 5
volumes:
postgres_data:
driver: local