🐳 pottwal: Add prosody docker container

The service should be moved away from helium.n39.eu into a container.
This commit is contained in:
Alexander Dahl 2022-01-30 11:39:05 +01:00
parent 081ee4dc61
commit bd89c96fbb

View file

@ -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"