services: web: build: . ports: - "80:80" depends_on: db: condition: service_healthy restart: always db: image: postgres healthcheck: test: ["CMD-SHELL", "pg_isready -U postgres"] interval: 5s timeout: 5s retries: 5
services: web: build: . ports: - "80:80" depends_on: db: condition: service_healthy restart: always db: image: postgres healthcheck: test: ["CMD-SHELL", "pg_isready -U postgres"] interval: 5s timeout: 5s retries: 5