version: '3.9' services: mkdocs: build: context: . dockerfile: Dockerfile image: mkdocs-material-prod ports: - "8085:80" environment: - NGINX_WORKER_PROCESSES=1 - NGINX_WORKER_CONNECTIONS=1024 volumes: - ./nginx.conf:/etc/nginx/conf.d/default.conf:ro restart: unless-stopped healthcheck: test: ["CMD", "curl", "-f", "http://localhost/"] interval: 30s timeout: 3s retries: 3