2017-08-28 15:31:54 +00:00
|
|
|
- name: Glances Docker Container
|
|
|
|
docker_container:
|
|
|
|
name: glances
|
|
|
|
image: nicolargo/glances
|
|
|
|
pull: true
|
|
|
|
ports:
|
2020-01-05 21:47:40 +00:00
|
|
|
- "{{ glances_port_one }}:61208"
|
|
|
|
- "{{ glances_port_two }}:61209"
|
2017-08-28 15:31:54 +00:00
|
|
|
volumes:
|
|
|
|
#- "/glances.conf:/glances/conf/glances.conf"
|
|
|
|
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
|
|
|
- "/etc/timezone:/etc/timezone:ro"
|
2018-04-08 22:29:25 +00:00
|
|
|
pid_mode: host
|
|
|
|
network_mode: host
|
2017-08-28 15:31:54 +00:00
|
|
|
env:
|
|
|
|
GLANCES_OPT: "-w"
|
|
|
|
restart_policy: unless-stopped
|
|
|
|
memory: 1g
|
2019-04-11 22:03:11 +00:00
|
|
|
labels:
|
|
|
|
traefik.backend: "glances"
|
|
|
|
traefik.frontend.rule: "Host:glances.{{ ansible_nas_domain }}"
|
|
|
|
traefik.enable: "{{ glances_available_externally }}"
|
2020-01-05 21:47:40 +00:00
|
|
|
traefik.port: "{{ glances_port_one }}"
|