services: blogs: build: context: . restart: unless-stopped expose: - "80" healthcheck: test: ["CMD", "wget", "-q", "--spider", "http://127.0.0.1/nginx-health"] interval: 30s timeout: 3s retries: 3 start_period: 10s