version: '3.8' services: nginx: build: ./nginx ports: - "80:80" restart: unless-stopped healthcheck: test: ["CMD", "curl", "-f", "http://localhost/health"] interval: 30s timeout: 10s retries: 3