27 lines
688 B
YAML
27 lines
688 B
YAML
version: "3.8"
|
|
|
|
services:
|
|
uptime-kuma:
|
|
image: louislam/uptime-kuma:2
|
|
container_name: uptime-kuma
|
|
restart: always
|
|
ports:
|
|
- "3001:3001" # This maps the container port "3001" to the host port "3001"
|
|
volumes:
|
|
- /docker/uptimekuma/data:/app/data # Configuring persistent storage
|
|
environment:
|
|
- TZ=Asia/Ho_Chi_Minh # Set the timezone
|
|
- 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"
|
|
|