🐳 pottwal: Add container hosting static website for XMPP
This commit is contained in:
parent
bd89c96fbb
commit
caf1e0e123
1 changed files with 18 additions and 0 deletions
18
pottwal.yml
18
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"
|
||||
|
|
Loading…
Reference in a new issue