mirror of
https://github.com/davestephens/ansible-nas
synced 2024-12-27 20:13:09 +00:00
ce21999f46
NOTE: The majority of traefik ports were totally broken and would never have worked. It should be the external port there, not the internal container port!. Port conflicts were fixed.
34 lines
940 B
YAML
34 lines
940 B
YAML
---
|
|
- name: The Lounge Directories
|
|
file:
|
|
path: "{{ item }}"
|
|
state: directory
|
|
with_items:
|
|
- "{{ thelounge_data_directory }}"
|
|
- "{{ thelounge_data_directory }}/users"
|
|
|
|
- name: Set up admin user
|
|
copy:
|
|
src: files/thelounge/users/admin.json
|
|
dest: "{{ thelounge_data_directory }}/users/admin.json"
|
|
mode: 0777
|
|
|
|
- name: The Lounge Docker Container
|
|
docker_container:
|
|
name: thelounge
|
|
image: thelounge/thelounge:latest
|
|
pull: true
|
|
ports:
|
|
- "{{ thelounge_port_one }}:9001"
|
|
- "{{ thelounge_port_two }}:9000"
|
|
volumes:
|
|
- "{{ thelounge_data_directory }}:/var/opt/thelounge"
|
|
- "/var/run/dbus:/var/run/dbus"
|
|
restart_policy: unless-stopped
|
|
memory: 1g
|
|
labels:
|
|
traefik.backend: "thelounge"
|
|
traefik.frontend.rule: "Host:thelounge.{{ ansible_nas_domain }}"
|
|
traefik.enable: "{{ thelounge_available_externally }}"
|
|
traefik.port: "thelounge_port_two"
|
|
|