diff --git a/pottwal.yml b/pottwal.yml index aaa525a..e8758a1 100644 --- a/pottwal.yml +++ b/pottwal.yml @@ -13,6 +13,7 @@ shlink_domain_name: sl.n39.eu prosody_data: "{{ data_dir }}/prosody" + jabber_host_port: 8086 hedgedoc_host_port: 8084 hedgedoc_image: quay.io/hedgedoc/hedgedoc:1.9.3 @@ -140,6 +141,23 @@ # TODO Migrate to dehydrated role # - /var/lib/dehydrated:/var/lib/dehydrated:ro + - name: Ensure container for static XMPP website is running + docker_container: + name: jabber-static-website + image: joseluisq/static-web-server:latest + pull: true + state: started + detach: true + restart_policy: unless-stopped + env: + SERVER_HOST=127.0.0.1 + SERVER_PORT=80 + SERVER_ROOT=/public + ports: + - "127.0.0.1:{{ jabber_host_port }}:80" + volumes: + - "{{ prosody_data }}/var/www:/public:ro" + - name: Check if hedgedoc data dir exists ansible.builtin.stat: path: "{{ data_dir }}/hedgedoc"