Files
electro4ort/docker-compose.local.yml
T
2026-12-01 12:12:13 +02:00

25 lines
637 B
YAML

# Local development
# docker compose -f docker-compose.local.yml up -d
name: electro4ort-local
services:
postgres:
image: postgres:19-alpine
restart: unless-stopped
environment:
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
POSTGRES_DB: ${POSTGRES_DB:-electro4ort}
ports:
- "127.0.0.1:${POSTGRES_PORT:-5432}:5432"
volumes:
- postgres-data:/var/lib/postgresql
healthcheck:
test: ["CMD-SHELL", 'pg_isready -U "$$POSTGRES_USER" -d "$$POSTGRES_DB"']
interval: 5s
timeout: 5s
retries: 10
volumes:
postgres-data: