Traefik autostop
This commit is contained in:
parent
77a1a3118e
commit
9c27bfdba7
|
@ -24,9 +24,9 @@ services:
|
|||
#- "--log.level=DEBUG"
|
||||
- "--metrics.prometheus=true"
|
||||
- "--api.dashboard=true"
|
||||
#- "--experimental.plugins.sablier.moduleName=github.com/acouvreur/sablier"
|
||||
#- "--experimental.plugins.sablier.version=v1.3.0"
|
||||
#- "--providers.file.filename=/etc/traefik/dynamic-config.yml"
|
||||
- "--experimental.plugins.sablier.modulename=github.com/acouvreur/sablier"
|
||||
- "--experimental.plugins.sablier.version=v1.5.0"
|
||||
environment:
|
||||
- TZ=Europe/Paris
|
||||
ports:
|
||||
|
@ -40,9 +40,9 @@ services:
|
|||
- type: bind
|
||||
source: $DATA/traefik/acme.json
|
||||
target: /acme.json
|
||||
- type: bind
|
||||
source: $DATA/traefik/rules.toml
|
||||
target: /rules.toml
|
||||
#- type: bind
|
||||
# source: $CONFIG/traefik/traefik.yaml
|
||||
# target: /etc/traefik/traefik.yaml
|
||||
restart: always
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
|
@ -56,6 +56,31 @@ services:
|
|||
networks:
|
||||
- external
|
||||
|
||||
sablier:
|
||||
container_name: sablier
|
||||
image: acouvreur/sablier:latest
|
||||
command:
|
||||
- start
|
||||
- --provider.name=docker
|
||||
volumes:
|
||||
- '/var/run/docker.sock:/var/run/docker.sock'
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.sablier.rule=Host(`sablier.bhasher.com`)"
|
||||
- "traefik.http.services.sablier.loadbalancer.server.port=80"
|
||||
- "traefik.http.routers.sablier.tls=true"
|
||||
- "traefik.http.routers.sablier.tls.certresolver=http"
|
||||
- "traefik.http.routers.sablier.entrypoints=internalsecure"
|
||||
- "traefik.http.middlewares.sablier1h.plugin.sablier.group=default"
|
||||
- "traefik.http.middlewares.sablier1h.plugin.sablier.dynamic.displayName=My Title"
|
||||
- "traefik.http.middlewares.sablier1h.plugin.sablier.dynamic.refreshFrequency=5s"
|
||||
- "traefik.http.middlewares.sablier1h.plugin.sablier.dynamic.showDetails=true"
|
||||
- "traefik.http.middlewares.sablier1h.plugin.sablier.dynamic.theme=hacker-terminal"
|
||||
- "traefik.http.middlewares.sablier1h.plugin.sablier.sablierUrl=http://sablier:10000"
|
||||
- "traefik.http.middlewares.sablier1h.plugin.sablier.sessionDuration=1m"
|
||||
networks:
|
||||
- external
|
||||
|
||||
networks:
|
||||
external:
|
||||
name: external
|
||||
|
|
|
@ -0,0 +1,21 @@
|
|||
services:
|
||||
whoami:
|
||||
container_name: whoami
|
||||
image: containous/whoami:v1.5.0
|
||||
restart: on-failure:3
|
||||
environment:
|
||||
- TZ=Europe/Paris
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.whoami.rule=Host(`whoami.bhasher.com`)"
|
||||
- "traefik.http.services.whoami.loadbalancer.server.port=80"
|
||||
- "traefik.http.routers.whoami.tls=true"
|
||||
- "traefik.http.routers.whoami.tls.certresolver=http"
|
||||
- "traefik.http.routers.whoami.entrypoints=internalsecure"
|
||||
- "traefik.http.routers.whoami.middlewares=sablier1h@docker"
|
||||
networks:
|
||||
- external
|
||||
|
||||
networks:
|
||||
external:
|
||||
external: true
|
Loading…
Reference in New Issue