From bd89c96fbb6ca3fbe73e219bd2ad254bece9c4be Mon Sep 17 00:00:00 2001 From: Alexander Dahl Date: Sun, 30 Jan 2022 11:39:05 +0100 Subject: [PATCH] :whale: pottwal: Add prosody docker container The service should be moved away from helium.n39.eu into a container. --- pottwal.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/pottwal.yml b/pottwal.yml index b5c796d..aaa525a 100644 --- a/pottwal.yml +++ b/pottwal.yml @@ -12,6 +12,8 @@ shlink_host_port: 8083 shlink_domain_name: sl.n39.eu + prosody_data: "{{ data_dir }}/prosody" + hedgedoc_host_port: 8084 hedgedoc_image: quay.io/hedgedoc/hedgedoc:1.9.3 @@ -119,6 +121,25 @@ site_name: "{{ shlink_domain_name }}" proxy_port: "{{ shlink_host_port }}" + - name: Ensure container for prosody XMPP server is running + docker_container: + name: prosody + image: netz39/prosody:0.11 + pull: true + state: started + detach: true + restart_policy: unless-stopped + ports: + # container offers more ports, depends on actual prosody configuration + - 5222:5222 # xmpp-client + - 5269:5269 # xmpp-server + volumes: + - "{{ prosody_data }}/etc/prosody:/etc/prosody:rw" + - "{{ prosody_data }}/var/lib/prosody:/var/lib/prosody:rw" + - "{{ prosody_data }}/var/log/prosody:/var/log/prosody:rw" + # TODO Migrate to dehydrated role + # - /var/lib/dehydrated:/var/lib/dehydrated:ro + - name: Check if hedgedoc data dir exists ansible.builtin.stat: path: "{{ data_dir }}/hedgedoc"