This commit is contained in:
Yax 2021-10-03 19:33:04 +02:00
parent 81c5fbacbb
commit 969e664c23

View file

@ -3,28 +3,16 @@ version: '3'
services: services:
glances: glances:
container_name: glances container_name: glances
image: vimagick/glances image: nicolargo/glances:3.2.0
volumes: volumes:
- glances_data:/etc/glances
- /var/run/docker.sock:/var/run/docker.sock:ro - /var/run/docker.sock:/var/run/docker.sock:ro
environment: environment:
- GLANCES_OPT=-w - GLANCES_OPT="-w"
pid: host pid: host
restart: unless-stopped
networks: networks:
- srv - srv
expose: expose:
- 61208 - 61208
labels: environment:
- traefik.enable=true - VIRTUAL_HOST=${HOST_GLANCES}.${DOMAIN}
- traefik.http.routers.glances.rule=Host(`${HOST_WWW}.${DOMAIN}`) && PathPrefix(`${PATH_GLANCES}`) - VIRTUAL_PORT=61208
- traefik.http.routers.glances.entrypoints=websecure
- traefik.http.routers.glances.tls=true
- traefik.http.services.glances.loadbalancer.server.port=61208
- 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}/
volumes:
glances_data: