29 lines
No EOL
981 B
YAML
Executable file
29 lines
No EOL
981 B
YAML
Executable file
version: '3.8'
|
|
|
|
services:
|
|
glances:
|
|
container_name: glances
|
|
image: nicolargo/glances:3.2.3.1
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
environment:
|
|
- GLANCES_OPT=-w
|
|
pid: host
|
|
networks:
|
|
- glances-frontend
|
|
expose:
|
|
- 61208
|
|
labels:
|
|
- traefik.enable=true
|
|
- traefik.http.routers.glances.rule=Host(`${HOST_WWW}.${DOMAIN}`) && PathPrefix(`${PATH_GLANCES}`)
|
|
- traefik.http.routers.glances.entrypoints=https
|
|
- 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}$$
|
|
- traefik.http.middlewares.glancesRedir.redirectregex.replacement=$${1}${PATH_GLANCES}/
|
|
- traefik.docker.network=glances-frontend
|
|
|
|
networks:
|
|
glances-frontend:
|
|
name: glances-frontend |