mirror of
https://github.com/davestephens/ansible-nas
synced 2024-11-16 08:48:04 +00:00
24 lines
No EOL
926 B
YAML
24 lines
No EOL
926 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
|
|
env:
|
|
GLANCES_OPT: "-w"
|
|
restart_policy: unless-stopped
|
|
memory: 1g
|
|
labels:
|
|
traefik.enable: "{{ glances_available_externally }}"
|
|
traefik.http.routers.glances.rule: "Host(`glances.{{ ansible_nas_domain }}`)"
|
|
traefik.http.routers.glances.tls.certresolver: "letsencrypt"
|
|
traefik.http.routers.glances.tls.domains[0].main: "{{ ansible_nas_domain }}"
|
|
traefik.http.routers.glances.tls.domains[0].sans: "*.{{ ansible_nas_domain }}"
|
|
traefik.http.services.glances.loadbalancer.server.port: "61208" |