add Uptime-Kuma container
This commit is contained in:
parent
36a9786724
commit
5afd9e37f6
3 changed files with 31 additions and 0 deletions
5
uptimekuma/.env-example
Normal file
5
uptimekuma/.env-example
Normal file
|
@ -0,0 +1,5 @@
|
|||
# Uptime-Kuma Version (Standard: latest)
|
||||
UPTIMEKUMA_VERSION=latest
|
||||
|
||||
# Uptime-Kuma Domain
|
||||
UPTIMEKUMA_DOMAIN=uptimekuma.example.com
|
0
uptimekuma/README.md
Normal file
0
uptimekuma/README.md
Normal file
26
uptimekuma/docker-compose.yml
Normal file
26
uptimekuma/docker-compose.yml
Normal file
|
@ -0,0 +1,26 @@
|
|||
---
|
||||
services:
|
||||
uptime-kuma:
|
||||
image: louislam/uptime-kuma:${UPTIMEKUMA_VERSION:-1}
|
||||
container_name: uptime-kuma
|
||||
restart: always
|
||||
volumes:
|
||||
- ./data/uptime-kuma:/app/data
|
||||
networks:
|
||||
- traefik
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.docker.network=traefik"
|
||||
- "traefik.http.routers.uptimekuma.entrypoints=http"
|
||||
- "traefik.http.routers.uptimekuma.rule=Host(`${UPTIMEKUMA_DOMAIN:?error}`)"
|
||||
- "traefik.http.middlewares.uptimekuma-https-redirect.redirectscheme.scheme=https"
|
||||
- "traefik.http.routers.uptimekuma.middlewares=uptimekuma-https-redirect"
|
||||
- "traefik.http.routers.uptimekuma-secure.entrypoints=https"
|
||||
- "traefik.http.routers.uptimekuma-secure.rule=Host(`${UPTIMEKUMA_DOMAIN:?error}`)"
|
||||
- "traefik.http.routers.uptimekuma-secure.tls=true"
|
||||
- "traefik.http.routers.uptimekuma-secure.service=uptimekuma"
|
||||
- "traefik.http.services.uptimekuma.loadbalancer.server.port=3001"
|
||||
|
||||
networks:
|
||||
traefik:
|
||||
external: true
|
Loading…
Add table
Reference in a new issue