-
Notifications
You must be signed in to change notification settings - Fork 1
/
glances.yml
38 lines (38 loc) · 1.36 KB
/
glances.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
services:
# Glances - System Information
glances:
image: nicolargo/glances:latest-full
container_name: glances
security_opt:
- no-new-privileges:true
restart: unless-stopped
# profiles: ["apps", "all"]
# privileged: true # Only for VM
# network_mode: host
networks:
- traefik_proxy
- socket_proxy
- default
ports:
- "61208:61208"
pid: host
volumes:
- $DOCKERDIR/appdata/glances/glances.conf:/glances/conf/glances.conf # Use this if you want to add a glances.conf file
- $DATADIR1:/data/data:ro
- $DOCKERDIR:/data/docker:ro
# - /var/run/docker.sock:/var/run/docker.sock:ro # Use Docker Socket Proxy instead for improved security
environment:
# GLANCES_OPT: "-C /glances/conf/glances.conf --quiet --export influxdb"
# GLANCES_OPT: "--export influxdb"
GLANCES_OPT: "-w"
DOCKER_HOST: tcp://socket-proxy:2375
labels:
- "traefik.enable=true"
# HTTP Routers
- "traefik.http.routers.glances-rtr.entrypoints=https"
- "traefik.http.routers.glances-rtr.rule=Host(`glances.$DOMAINNAME_DS918`)"
# Middlewares
- "traefik.http.routers.glances-rtr.middlewares=chain-oauth@file"
# HTTP Services
- "traefik.http.routers.glances-rtr.service=glances-svc"
- "traefik.http.services.glances-svc.loadbalancer.server.port=61208"