Add privatebin service

This commit is contained in:
Jesper Hess 2019-02-13 08:50:42 +01:00
parent fefbabcc33
commit 83935a8649
Signed by: graffen
GPG key ID: 351A89E40D763F0F
2 changed files with 21 additions and 0 deletions

View file

@ -21,3 +21,6 @@ matrix:
riot:
domain: "riot.{{ base_domain }}"
privatebin:
domain: "paste.{{ base_domain }}"

View file

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