🐳 pottwal: Add container hosting static website for XMPP

This commit is contained in:
Alexander Dahl 2022-09-15 20:41:54 +02:00
parent bd89c96fbb
commit caf1e0e123

View file

@ -13,6 +13,7 @@
shlink_domain_name: sl.n39.eu shlink_domain_name: sl.n39.eu
prosody_data: "{{ data_dir }}/prosody" prosody_data: "{{ data_dir }}/prosody"
jabber_host_port: 8086
hedgedoc_host_port: 8084 hedgedoc_host_port: 8084
hedgedoc_image: quay.io/hedgedoc/hedgedoc:1.9.3 hedgedoc_image: quay.io/hedgedoc/hedgedoc:1.9.3
@ -140,6 +141,23 @@
# TODO Migrate to dehydrated role # TODO Migrate to dehydrated role
# - /var/lib/dehydrated:/var/lib/dehydrated:ro # - /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 - name: Check if hedgedoc data dir exists
ansible.builtin.stat: ansible.builtin.stat:
path: "{{ data_dir }}/hedgedoc" path: "{{ data_dir }}/hedgedoc"