Files
sqlmodel-pg-kit/docker/docker-compose.yml
2025-09-18 15:43:33 +08:00

20 lines
430 B
YAML

services:
postgres:
image: postgres:15
restart: unless-stopped
environment:
POSTGRES_DB: appdb
POSTGRES_USER: appuser
POSTGRES_PASSWORD: changeme
ports:
- "5432:5432"
volumes:
- pg_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
interval: 3s
timeout: 3s
retries: 5
volumes:
pg_data: