mirror of
https://github.com/davestephens/ansible-nas
synced 2024-11-15 00:17:10 +00:00
ce21999f46
NOTE: The majority of traefik ports were totally broken and would never have worked. It should be the external port there, not the internal container port!. Port conflicts were fixed.
23 lines
No EOL
707 B
YAML
23 lines
No EOL
707 B
YAML
- name: Glances Docker Container
|
|
docker_container:
|
|
name: glances
|
|
image: nicolargo/glances
|
|
pull: true
|
|
ports:
|
|
- "{{ glances_port_one }}:61208"
|
|
- "{{ glances_port_two }}:61209"
|
|
volumes:
|
|
#- "/glances.conf:/glances/conf/glances.conf"
|
|
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
|
- "/etc/timezone:/etc/timezone:ro"
|
|
pid_mode: host
|
|
network_mode: host
|
|
env:
|
|
GLANCES_OPT: "-w"
|
|
restart_policy: unless-stopped
|
|
memory: 1g
|
|
labels:
|
|
traefik.backend: "glances"
|
|
traefik.frontend.rule: "Host:glances.{{ ansible_nas_domain }}"
|
|
traefik.enable: "{{ glances_available_externally }}"
|
|
traefik.port: "{{ glances_port_one }}" |