services: web: build: . ports: - '11000:5000' environment: SQLALCHEMY_DATABASE_URI: postgresql://postgres:postgres@db:5432/postgres depends_on: db: condition: service_healthy db: image: postgres environment: POSTGRES_PASSWORD: postgres volumes: - ./instance/db:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U postgres"] interval: 5s timeout: 5s retries: 5