From 83935a86499124818ad619a174ed2e95fc5e7a88 Mon Sep 17 00:00:00 2001 From: Jesper Hess Nielsen Date: Wed, 13 Feb 2019 08:50:42 +0100 Subject: [PATCH] Add privatebin service --- roles/docker/defaults/main.yml | 3 +++ roles/docker/tasks/services/privatebin.yml | 18 ++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 roles/docker/tasks/services/privatebin.yml 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 }}"