add: add docker compose stacks
This commit is contained in:
26
uptimekuma/docker-compose.yaml
Normal file
26
uptimekuma/docker-compose.yaml
Normal file
@@ -0,0 +1,26 @@
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
uptime-kuma:
|
||||
image: louislam/uptime-kuma:latest
|
||||
container_name: uptime-kuma
|
||||
restart: always
|
||||
ports:
|
||||
- "3001:3001" # This maps the container port "3001" to the host port "3001"
|
||||
volumes:
|
||||
- /data/docker/uptimekuma/data:/app/data # Configuring persistent storage
|
||||
environment:
|
||||
- TZ=Asia/Ho_Chi_Minh # 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"
|
||||
|
||||
Reference in New Issue
Block a user