Merge pull request 'Add fedi.dk website' (#155) from reynir/ansible:add-fedi.dk-website into main

Reviewed-on: data.coop/ansible#155
This commit is contained in:
Sam A. 2023-02-20 18:22:07 +00:00
commit 2d85dec774
2 changed files with 24 additions and 0 deletions

View file

@ -138,6 +138,11 @@ services:
domain: "2022.slides.{{ base_domain }}" domain: "2022.slides.{{ base_domain }}"
version: latest version: latest
fedi_dk_website:
file: websites/fedi.dk.yaml
domain: fedi.dk
version: latest
cryptohagen_website: cryptohagen_website:
file: websites/cryptohagen.dk.yml file: websites/cryptohagen.dk.yml
domains: domains:

View file

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