From 82aa6f67aa16b67e4080a5905bb6da1889b6145b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reynir=20Bj=C3=B6rnsson?= Date: Sat, 18 Feb 2023 21:09:49 +0100 Subject: [PATCH] Add fedi.dk website --- roles/docker/defaults/main.yml | 5 +++++ .../tasks/services/websites/fedi.dk.yaml | 19 +++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 roles/docker/tasks/services/websites/fedi.dk.yaml diff --git a/roles/docker/defaults/main.yml b/roles/docker/defaults/main.yml index 79bf170..e5a15f3 100644 --- a/roles/docker/defaults/main.yml +++ b/roles/docker/defaults/main.yml @@ -138,6 +138,11 @@ services: domain: "2022.slides.{{ base_domain }}" version: latest + fedi_dk_website: + file: websites/fedi.dk.yaml + domain: fedi.dk + version: latest + cryptohagen_website: file: websites/cryptohagen.dk.yml domains: diff --git a/roles/docker/tasks/services/websites/fedi.dk.yaml b/roles/docker/tasks/services/websites/fedi.dk.yaml new file mode 100644 index 0000000..f4b97b2 --- /dev/null +++ b/roles/docker/tasks/services/websites/fedi.dk.yaml @@ -0,0 +1,19 @@ +# vim: ft=yaml.ansible +--- +- name: setup fedi.dk website with unipi + docker_container: + name: fedi.dk_website + image: docker.data.coop/unipi:{{ services.fedi_dk_website.version }} + restart_policy: unless-stopped + purge_networks: yes + networks: + - name: external_services + env: + VIRTUAL_HOST: "{{ services.fedi_dk_website.domain }}" + LETSENCRYPT_HOST: "{{ services.fedi_dk_website.domain }}" + LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}" + command: "--remote=https://git.data.coop/fedi.dk/website.git#main" + capabilities: + - NET_ADMIN + devices: + - "/dev/net/tun"