2020-04-23 06:47:02 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
- name: Krusader Directory
|
|
|
|
file:
|
|
|
|
path: "{{ item }}"
|
|
|
|
state: directory
|
|
|
|
with_items:
|
2020-05-10 21:32:36 +00:00
|
|
|
- "{{ krusader_config_directory }}/krusader"
|
2020-04-23 06:47:02 +00:00
|
|
|
|
|
|
|
- name: Krusader Docker Container
|
|
|
|
docker_container:
|
|
|
|
name: krusader
|
|
|
|
image: djaydev/krusader:latest
|
|
|
|
pull: true
|
|
|
|
volumes:
|
2020-05-10 21:32:36 +00:00
|
|
|
- "{{ krusader_config_directory }}:/config:rw"
|
2020-04-23 06:47:02 +00:00
|
|
|
- "{{ krusader_browse_directory }}:/mnt/fs"
|
|
|
|
ports:
|
|
|
|
- "{{ krusader_port_http }}:5800"
|
|
|
|
- "{{ krusader_port_vnc }}:5900"
|
|
|
|
env:
|
2020-04-24 23:43:01 +00:00
|
|
|
USER_ID: "{{ krusader_user_id }}"
|
|
|
|
GROUP_ID: "{{ krusader_group_id }}"
|
|
|
|
SECURE_CONNECTION: "{{ krusader_secure_connection }}"
|
2020-04-23 06:47:02 +00:00
|
|
|
TZ: "{{ ansible_nas_timezone }}"
|
2020-04-24 23:43:01 +00:00
|
|
|
VNC_PASSWORD: "{{ krusader_vnc_password }}"
|
2020-04-23 06:47:02 +00:00
|
|
|
restart_policy: unless-stopped
|
2021-01-19 23:51:59 +00:00
|
|
|
memory: 1g
|
2020-04-23 06:47:02 +00:00
|
|
|
labels:
|
|
|
|
traefik.enable: "{{ krusader_available_externally }}"
|
2021-01-19 23:51:59 +00:00
|
|
|
traefik.http.routers.krusader.rule: "Host(`krusader.{{ ansible_nas_domain }}`)"
|
|
|
|
traefik.http.routers.krusader.tls.certresolver: "letsencrypt"
|
|
|
|
traefik.http.routers.krusader.tls.domains[0].main: "{{ ansible_nas_domain }}"
|
|
|
|
traefik.http.routers.krusader.tls.domains[0].sans: "*.{{ ansible_nas_domain }}"
|
|
|
|
traefik.http.services.krusader.loadbalancer.server.port: "5800"
|