Skip to content

Commit

Permalink
Add Uptime-kuma stack
Browse files Browse the repository at this point in the history
  • Loading branch information
johackim committed Aug 22, 2021
1 parent 141eeb6 commit 47f1ab1
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions stacks/uptime-kuma.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# DOMAIN=example.com docker stack deploy -c uptime-kuma.yml uptime-kuma

version: '3.8'

services:
web:
image: louislam/uptime-kuma:${VERSION:-1.3.2}
volumes:
- ${VOLUME_PATH}data:/app/data
deploy:
labels:
- traefik.enable=true
- traefik.http.routers.uptime-kuma-${NUMBER:-1}.rule=Host(`${DOMAIN:-uptime-kuma.localhost}`)
- traefik.http.routers.uptime-kuma-${NUMBER:-1}.entrypoints=${SCHEME:-https}
- traefik.http.routers.uptime-kuma-${NUMBER:-1}.service=uptime-kuma-${NUMBER:-1}
- traefik.http.routers.uptime-kuma-${NUMBER:-1}.tls.certresolver=letsencrypt
- traefik.http.services.uptime-kuma-${NUMBER:-1}.loadbalancer.server.port=3001

volumes:
data:

networks:
default:
external: true
name: traefik-net

0 comments on commit 47f1ab1

Please sign in to comment.