Added a file for bind mounts
This commit is contained in:
@@ -1,2 +1,5 @@
|
|||||||
# Host port that maps to Uptime Kuma's internal port 3001
|
# Host port that maps to Uptime Kuma's internal port 3001
|
||||||
UPTIME-KUMA_PORT=3001
|
UPTIME-KUMA_PORT=3001
|
||||||
|
|
||||||
|
# Linux username used to resolve the bind mount path (/home/<username>/uptime-kuma/data) — bind mount compose file only
|
||||||
|
UPTIME-KUMA_USERNAME=
|
||||||
@@ -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
|
||||||
Reference in New Issue
Block a user