services: web: build: . ports: - "8080:8080" environment: LOG_LEVEL: debug POSTGRES_URL: postgres://postgres@postgres:5432/postgres?sslmode=disable depends_on: postgres: condition: service_healthy postgres: image: postgres:latest environment: POSTGRES_USER: postgres POSTGRES_DB: postgres POSTGRES_HOST_AUTH_METHOD: trust ports: - "5432:5432" healthcheck: test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"] interval: 5s timeout: 5s retries: 5 # yaml-language-server: $schema=https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json