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"