2020-06-27 14:55:16 +02:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
glances:
|
|
|
|
|
container_name: glances
|
|
|
|
|
image: vimagick/glances
|
|
|
|
|
volumes:
|
|
|
|
|
- glances_data:/etc/glances
|
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
|
|
|
environment:
|
|
|
|
|
- GLANCES_OPT=-w
|
|
|
|
|
pid: host
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
networks:
|
|
|
|
|
- srv
|
|
|
|
|
expose:
|
|
|
|
|
- 61208
|
2020-06-27 16:47:01 +02:00
|
|
|
labels:
|
2020-06-27 17:46:18 +02:00
|
|
|
- traefik.enable=true
|
2020-06-28 11:43:06 +02:00
|
|
|
- traefik.http.routers.glances.rule=Host(`${HOST_GLANCES}.${DOMAIN}`)
|
2020-06-28 13:00:18 +02:00
|
|
|
- traefik.http.routers.glances.entrypoints=websecure
|
2020-06-30 20:23:17 +02:00
|
|
|
- traefik.http.routers.glances.tls=true
|
2020-06-27 16:47:01 +02:00
|
|
|
- traefik.http.services.glances.loadbalancer.server.port=61208
|
2020-07-06 18:54:38 +02:00
|
|
|
- traefik.http.routers.glances.middlewares=glancesRedir,glancesPStrip
|
|
|
|
|
- traefik.http.middlewares.glancesPStrip.stripprefix.prefixes=${PATH_GLANCES}
|
|
|
|
|
- traefik.http.middlewares.glancesRedir.redirectregex.regex=^(.*)${PATH_GLANCES}$$
|
|
|
|
|
- traefik.http.middlewares.glancesRedir.redirectregex.replacement=$${1}${PATH_GLANCES}/
|
2020-06-27 17:46:18 +02:00
|
|
|
|
2020-06-27 14:55:16 +02:00
|
|
|
volumes:
|
|
|
|
|
glances_data:
|