services: postgres: image: postgres:17 container_name: amare-postgres restart: unless-stopped ports: - "${DB_PORT:-5432}:5432" environment: POSTGRES_DB: ${DB_DATABASE:-amare} POSTGRES_USER: ${DB_USERNAME:-amare} POSTGRES_PASSWORD: ${DB_PASSWORD:-secret} volumes: - amare_postgres_data:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U ${DB_USERNAME:-amare} -d ${DB_DATABASE:-amare}"] interval: 5s timeout: 5s retries: 10 start_period: 10s volumes: amare_postgres_data: