photum/backend/docker-compose.yml

21 lines
510 B
YAML

services:
postgres:
image: postgres:15-alpine
container_name: photum-postgres
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: pass
POSTGRES_DB: photum
ports:
- "54322:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
- ./internal/db/schema.sql:/docker-entrypoint-initdb.d/schema.sql
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U user -d photum" ]
interval: 10s
timeout: 5s
retries: 5
volumes:
postgres_data: