diff --git a/roles/docker/defaults/main.yml b/roles/docker/defaults/main.yml index 804536a7..e5bfd457 100644 --- a/roles/docker/defaults/main.yml +++ b/roles/docker/defaults/main.yml @@ -21,3 +21,6 @@ matrix: riot: domain: "riot.{{ base_domain }}" + +privatebin: + domain: "paste.{{ base_domain }}" diff --git a/roles/docker/tasks/services/privatebin.yml b/roles/docker/tasks/services/privatebin.yml new file mode 100644 index 00000000..db1869c5 --- /dev/null +++ b/roles/docker/tasks/services/privatebin.yml @@ -0,0 +1,18 @@ +--- +- name: privatebin volume + docker_volume: + name: privatebin + +- name: privatebin app container + docker_container: + name: privatebin + image: jgeusebroek/privatebin:latest + restart_policy: unless_stopped + volumes: + - privatebin:/privatebin + networks: + - name: external_services + env: + VIRTUAL_HOST: "{{ privatebin.domain }}" + LETSENCRYPT_HOST: "{{ privatebin.domain }}" + LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}"