version: '3.9'

services:
  mkdocs:
    build:
      context: .
      dockerfile: Dockerfile
    image: mkdocs-material-prod:latest
    ports:
      - "8085:80"
    volumes:
      - ./mkdocs.yml:/docs/mkdocs.yml:ro
      - ./docs:/docs/docs:ro
    environment:
      - PYTHONUNBUFFERED=1
    restart: unless-stopped
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:80/"]
      interval: 30s
      timeout: 3s
      retries: 3