version: '3.8' services: app: image: nginx environment: SERVICE_FQDN_APP: /app APP_KEY: base64 APP_DEBUG: '${APP_DEBUG:-false}' APP_URL: $SERVICE_FQDN_APP volumes: - './html:/var/www/html' - 'test-html:/html' depends_on: db: condition: service_healthy db: image: postgres environment: POSTGRES_USER: ${POSTGRES_USER:-postgres} POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres} volumes: - 'data:/var/lib/postgresql/data' healthcheck: test: - CMD - pg_isready - '-U' - postgres interval: 30s timeout: 10s retries: 5 networks: default: ipv4_address: 127.0.0.1