services: uptime-kuma-beta: image: louislam/uptime-kuma:2 container_name: uptime-kuma volumes: - ./data:/app/data - /var/run/docker.sock:/var/run/docker.sock - ./mysql/my-custom.cnf:/etc/mysql/mariadb.conf.d/99-custom.cnf:ro environment: # Force Node à nettoyer la RAM avant d'atteindre 256Mo - NODE_OPTIONS=--max-old-space-size=256 # passage en mode host, plus performant et stable. # évite une couche réseau NAT/Bridge entre kuma et internet # ports: # - "82.165.143.163:3001:3001" network_mode: "host" restart: always deploy: resources: limits: memory: 380M reservations: memory: 200M