mirror of
https://github.com/davestephens/ansible-nas
synced 2024-12-28 04:23:18 +00:00
30 lines
No EOL
908 B
YAML
30 lines
No EOL
908 B
YAML
---
|
|
- name: Create ZNC Directories
|
|
file:
|
|
path: "{{ item }}"
|
|
state: directory
|
|
with_items:
|
|
- "{{ znc_data_directory }}"
|
|
|
|
- name: ZNC
|
|
docker_container:
|
|
name: znc
|
|
image: znc
|
|
pull: true
|
|
volumes:
|
|
- "{{ znc_data_directory }}:/znc-data:rw"
|
|
- "/etc/timezone:/etc/timezone:ro"
|
|
ports:
|
|
- "{{ znc_port }}:6677"
|
|
env:
|
|
PUID: "{{ znc_user_id }}"
|
|
PGID: "{{ znc_group_id }}"
|
|
restart_policy: unless-stopped
|
|
memory: 1g
|
|
labels:
|
|
traefik.enable: "{{ znc_available_externally }}"
|
|
traefik.http.routers.znc.rule: "Host(`znc.{{ ansible_nas_domain }}`)"
|
|
traefik.http.routers.znc.tls.certresolver: "letsencrypt"
|
|
traefik.http.routers.znc.tls.domains[0].main: "{{ ansible_nas_domain }}"
|
|
traefik.http.routers.znc.tls.domains[0].sans: "*.{{ ansible_nas_domain }}"
|
|
traefik.http.services.znc.loadbalancer.server.port: "6677" |