29 lines
819 B
YAML
29 lines
819 B
YAML
version: "3.8"
|
|
|
|
services:
|
|
uptime-kuma:
|
|
image: louislam/uptime-kuma:latest
|
|
container_name: uptime-kuma
|
|
restart: always
|
|
ports:
|
|
- "2301:3001" # This maps the container port "3001" to the host port "3001"
|
|
volumes:
|
|
- /path/to/data:/app/data # Configuring persistent storage
|
|
environment:
|
|
- TZ=UTC+1 # Set the timezone (change to your preferred local timezone so monitoring times are the same)
|
|
- UMASK=0022 # Set your file permissions manually
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:3001"]
|
|
interval: 30s
|
|
retries: 3
|
|
start_period: 10s
|
|
timeout: 5s
|
|
logging:
|
|
driver: "json-file"
|
|
options:
|
|
max-size: "10m"
|
|
max-file: "3"
|
|
labels:
|
|
tsdproxy.enable: "true"
|
|
tsdproxy.name: "uptime"
|
|
|