Uptime Kuma docker SSL without Proxy

vi dockercompose_kuma.yml
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"
- "443:443"
volumes:
- data:/app/data # Configuring persistent storage
environment:
- TZ=Asia/Hong_Kong # Set the timezone (change to your preferred local timezone so monitoring times are the same)
- UMASK=0022 # Set your file permissions manually
- UPTIME_KUMA_PORT=443
- UPTIME_KUMA_SSL_KEY=/app/data/ssl/privkey.pem
- UPTIME_KUMA_SSL_CERT=/app/data/ssl/fullchain.pem
network_mode: bridge
healthcheck:
test: ["CMD", "curl", "-k", "-f", "https://localhost"]
interval: 30s
retries: 3
start_period: 10s
timeout: 5s
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"

volumes:
data:
driver: local

mkdir -p /var/lib/docker/volumes/kuma_data/_data/ssl/
把對應的cert放進去, privkey.pem fullchain.pem

docker compose -p kuma -f dockercompose_kuma.yml up -d

Reference:

Install Uptime Kuma using Docker or Docker Compose

Comments

No comments yet. Why don’t you start the discussion?

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *

*