services: postgres: image: postgres:15-alpine container_name: s2f-postgres environment: POSTGRES_DB: s2f_db POSTGRES_USER: s2f_user POSTGRES_PASSWORD: s2f_password ports: - "5432:5432" volumes: - postgres_data:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U s2f_user -d s2f_db"] interval: 10s timeout: 5s retries: 5 volumes: postgres_data: