2020-04-25 04:15:02 +00:00
|
|
|
---
|
|
|
|
- name: Create Organizr Directories
|
|
|
|
file:
|
|
|
|
path: "{{ item }}"
|
|
|
|
state: directory
|
|
|
|
with_items:
|
|
|
|
- "{{ organizr_data_directory }}"
|
|
|
|
|
|
|
|
- name: Create Organizr container
|
|
|
|
docker_container:
|
|
|
|
name: organizr
|
2021-01-16 09:16:24 +00:00
|
|
|
image: organizr/organizr:latest
|
2020-04-25 04:15:02 +00:00
|
|
|
pull: true
|
|
|
|
volumes:
|
|
|
|
- "{{ organizr_data_directory }}:/config:rw"
|
|
|
|
env:
|
|
|
|
PUID: "{{ organizr_user_id }}"
|
|
|
|
PGID: "{{ organizr_group_id }}"
|
|
|
|
TZ: "{{ ansible_nas_timezone }}"
|
|
|
|
ports:
|
|
|
|
- "{{ organizr_port_http }}:80"
|
|
|
|
- "{{ organizr_port_https }}:443"
|
|
|
|
restart_policy: unless-stopped
|
|
|
|
memory: 1g
|
|
|
|
labels:
|
|
|
|
traefik.backend: "organizr"
|
|
|
|
traefik.frontend.rule: "Host:organizr.{{ ansible_nas_domain }}"
|
|
|
|
traefik.enable: "{{ organizr_available_externally }}"
|
|
|
|
traefik.port: "80"
|