Files
selfhosting/glances/docker-compose.glances.yml
T

27 lines
925 B
YAML
Raw Normal View History

2022-03-05 15:03:09 +01:00
version: '3.8'
2020-06-27 14:55:16 +02:00
services:
glances:
container_name: glances
2021-10-06 20:14:28 +02:00
image: nicolargo/glances:3.2.3.1
2020-06-27 14:55:16 +02:00
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
2021-11-01 19:10:42 +01:00
environment:
- GLANCES_OPT=-w
2020-06-27 14:55:16 +02:00
pid: host
networks:
2021-12-12 12:02:11 +01:00
- glances-frontend
2020-06-27 14:55:16 +02:00
expose:
- 61208
2021-11-01 19:10:42 +01:00
labels:
- traefik.enable=true
- traefik.http.routers.glances.rule=Host(`${HOST_WWW}.${DOMAIN}`) && PathPrefix(`${PATH_GLANCES}`)
2021-11-01 20:26:33 +01:00
- traefik.http.routers.glances.entrypoints=https
2021-11-01 19:10:42 +01:00
- traefik.http.routers.glances.tls=true
- traefik.http.routers.glances.middlewares=glancesRedir,glancesPStrip
- traefik.http.middlewares.glancesPStrip.stripprefix.prefixes=${PATH_GLANCES}
- traefik.http.middlewares.glancesRedir.redirectregex.regex=^(.*)${PATH_GLANCES}$$
2021-12-12 12:02:11 +01:00
- traefik.http.middlewares.glancesRedir.redirectregex.replacement=$${1}${PATH_GLANCES}/
- traefik.docker.network=glances-frontend
2021-10-24 10:07:24 +02:00