services: postgres: image: postgres:17-alpine container_name: certremind-postgres environment: POSTGRES_DB: certremind POSTGRES_USER: certremind POSTGRES_PASSWORD: certremind ports: - '5432:5432' volumes: - postgres-data:/var/lib/postgresql/data - ./db/schema.sql:/docker-entrypoint-initdb.d/001-schema.sql:ro healthcheck: test: ['CMD-SHELL', 'pg_isready -U certremind -d certremind'] interval: 10s timeout: 5s retries: 5 volumes: postgres-data: