diff --git a/Uptime-Kuma/.env.example b/Uptime-Kuma/.env.example index 159bfec..a2692f5 100644 --- a/Uptime-Kuma/.env.example +++ b/Uptime-Kuma/.env.example @@ -1,2 +1,5 @@ # Host port that maps to Uptime Kuma's internal port 3001 UPTIME-KUMA_PORT=3001 + +# Linux username used to resolve the bind mount path (/home//uptime-kuma/data) — bind mount compose file only +UPTIME-KUMA_USERNAME= \ No newline at end of file diff --git a/Uptime-Kuma/docker-compose-bind.yaml b/Uptime-Kuma/docker-compose-bind.yaml new file mode 100644 index 0000000..947a278 --- /dev/null +++ b/Uptime-Kuma/docker-compose-bind.yaml @@ -0,0 +1,14 @@ +services: + app: + container_name: uptime-kuma + image: louislam/uptime-kuma:latest + ports: + - ${UPTIME-KUMA_PORT}:3001 + volumes: + - /home/${UPTIME-KUMA_USERNAME}/uptime-kuma/data:/app/data + - /var/run/docker.sock:/var/run/docker.sock + deploy: + resources: + limits: + memory: 512m + restart: unless-stopped \ No newline at end of file