From 32f25aeb8ff3c4758e5e7cd356a02fc30cd054e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reynir=20Bj=C3=B6rnsson?= Date: Mon, 6 Mar 2023 11:50:59 +0100 Subject: [PATCH] Add vhs.data.coop website --- roles/docker/defaults/main.yml | 5 +++++ .../services/websites/vhs.data.coop.yaml | 19 +++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 roles/docker/tasks/services/websites/vhs.data.coop.yaml diff --git a/roles/docker/defaults/main.yml b/roles/docker/defaults/main.yml index bb055cbb..2dce3979 100644 --- a/roles/docker/defaults/main.yml +++ b/roles/docker/defaults/main.yml @@ -144,6 +144,11 @@ services: domain: fedi.dk version: latest + vhs_website: + file: websites/vhs.data.coop.yaml + domain: vhs.data.coop + version: latest + cryptohagen_website: file: websites/cryptohagen.dk.yml domains: diff --git a/roles/docker/tasks/services/websites/vhs.data.coop.yaml b/roles/docker/tasks/services/websites/vhs.data.coop.yaml new file mode 100644 index 00000000..f3b951a9 --- /dev/null +++ b/roles/docker/tasks/services/websites/vhs.data.coop.yaml @@ -0,0 +1,19 @@ +# vim: ft=yaml.ansible +--- +- name: setup vhs.data.coop website with unipi + docker_container: + name: vhs.data.coop_website + image: docker.data.coop/unipi:{{ services.vhs_website.version }} + restart_policy: unless-stopped + purge_networks: yes + networks: + - name: external_services + env: + VIRTUAL_HOST: "{{ services.vhs_website.domain }}" + LETSENCRYPT_HOST: "{{ services.vhs_website.domain }}" + LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}" + command: "--remote=https://git.data.coop/vhs.data.coop/website.git#main" + capabilities: + - NET_ADMIN + devices: + - "/dev/net/tun"