version: "3.9" services: web: image: nginx:1.27-alpine container_name: michaelpeskov_web ports: - "8080:80" volumes: - ./web:/usr/share/nginx/html:ro - ./nginx/default.conf:/etc/nginx/conf.d/default.conf:ro restart: unless-stopped healthcheck: test: ["CMD", "wget", "-qO-", "http://localhost"] interval: 10s timeout: 3s retries: 3 start_period: 5s