🐳 pottwal: Add prosody docker container
The service should be moved away from helium.n39.eu into a container.
This commit is contained in:
parent
081ee4dc61
commit
bd89c96fbb
1 changed files with 21 additions and 0 deletions
21
pottwal.yml
21
pottwal.yml
|
@ -12,6 +12,8 @@
|
||||||
shlink_host_port: 8083
|
shlink_host_port: 8083
|
||||||
shlink_domain_name: sl.n39.eu
|
shlink_domain_name: sl.n39.eu
|
||||||
|
|
||||||
|
prosody_data: "{{ data_dir }}/prosody"
|
||||||
|
|
||||||
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
|
||||||
|
|
||||||
|
@ -119,6 +121,25 @@
|
||||||
site_name: "{{ shlink_domain_name }}"
|
site_name: "{{ shlink_domain_name }}"
|
||||||
proxy_port: "{{ shlink_host_port }}"
|
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
|
- name: Check if hedgedoc data dir exists
|
||||||
ansible.builtin.stat:
|
ansible.builtin.stat:
|
||||||
path: "{{ data_dir }}/hedgedoc"
|
path: "{{ data_dir }}/hedgedoc"
|
||||||
|
|
Loading…
Reference in a new issue