version: '3.8' networks: traefik-public: external: true services: dozzle: image: amir20/dozzle:latest user: "0:0" volumes: - /var/run/docker.sock:/var/run/docker.sock:ro networks: - traefik-public environment: - DOZZLE_MODE=swarm - DOZZLE_LEVEL=debug - DOZZLE_NO_ANALYTICS=true logging: driver: "json-file" options: max-size: "5m" max-file: "2" deploy: mode: global resources: limits: memory: 256M cpus: '0.25' reservations: memory: 64M cpus: '0.05' restart_policy: condition: any delay: 5s labels: - "traefik.enable=true" - "traefik.http.routers.dozzle.rule=Host(`dozzle.sterl.xyz`)" - "traefik.http.routers.dozzle.entrypoints=websecure" - "traefik.http.routers.dozzle.tls.certresolver=cfresolver" - "traefik.http.services.dozzle.loadbalancer.server.port=8080" - "traefik.swarm.network=traefik-public" - "docktail.enable=true" - "docktail.name=logs" - "docktail.container_port=8080" healthcheck: test: ["CMD-SHELL", "if [ -S /var/run/docker.sock ]; then exit 0; else exit 1; fi"] interval: 30s timeout: 10s retries: 3 start_period: 10s