services: configurator: environment: DB_HOST: db DB_PORT: "5432" depends_on: db: condition: service_healthy db: image: postgres:15-alpine command: [] healthcheck: test: ["CMD-SHELL", "pg_isready -U postgres"] interval: 5s retries: 5 environment: POSTGRES_PASSWORD: ${DB_PASSWORD:-123} volumes: - db-data:/var/lib/postgresql/data volumes: db-data: