mirror of
https://github.com/davestephens/ansible-nas
synced 2024-12-25 19:13:08 +00:00
6e6104b14c
Signed-off-by: Webster Mudge <wmudge@gmail.com>
25 lines
973 B
YAML
25 lines
973 B
YAML
---
|
|
- name: Create Glances Docker Container
|
|
docker_container:
|
|
name: glances
|
|
image: nicolargo/glances
|
|
pull: true
|
|
volumes:
|
|
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
|
- "/etc/timezone:/etc/timezone:ro"
|
|
pid_mode: host
|
|
ports:
|
|
- "{{ glances_port_one }}:61208"
|
|
- "{{ glances_port_two }}:61209"
|
|
env:
|
|
GLANCES_OPT: "-w"
|
|
restart_policy: unless-stopped
|
|
security_opts: "{{ glances_security_options }}"
|
|
memory: "{{ glances_memory }}"
|
|
labels:
|
|
traefik.enable: "{{ glances_available_externally }}"
|
|
traefik.http.routers.glances.rule: "Host(`{{ glances_hostname }}.{{ 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"
|