diff --git a/playbook.yml b/playbook.yml index ea2c2780..7c82f5de 100644 --- a/playbook.yml +++ b/playbook.yml @@ -21,7 +21,7 @@ - codimd - netdata - docker_registry - - website + - websites smtp_host: postfix smtp_port: 587 diff --git a/roles/docker/defaults/main.yml b/roles/docker/defaults/main.yml index 7ad3094c..4a496395 100644 --- a/roles/docker/defaults/main.yml +++ b/roles/docker/defaults/main.yml @@ -42,5 +42,8 @@ docker_registry: username: "docker" password: "{{ docker_password }}" -website: +data_coop_website: domain: "{{ base_domain }}" + +cryptohagen_website: + domain: "cryptohagen.dk" diff --git a/roles/docker/tasks/services/website.yml b/roles/docker/tasks/services/website.yml deleted file mode 100644 index bb50a607..00000000 --- a/roles/docker/tasks/services/website.yml +++ /dev/null @@ -1,12 +0,0 @@ ---- - -- name: setup data.coop website docker container - docker_container: - name: website - image: docker.data.coop/data-coop-website - networks: - - name: external_services - env: - VIRTUAL_HOST : "{{ website.domain }}" - LETSENCRYPT_HOST: "{{ website.domain }}" - LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}" diff --git a/roles/docker/tasks/services/websites.yml b/roles/docker/tasks/services/websites.yml new file mode 100644 index 00000000..2b956921 --- /dev/null +++ b/roles/docker/tasks/services/websites.yml @@ -0,0 +1,23 @@ +--- + +- name: setup data.coop website docker container + docker_container: + name: website + image: docker.data.coop/data-coop-website + networks: + - name: external_services + env: + VIRTUAL_HOST : "{{ data_coop_website.domain }}" + LETSENCRYPT_HOST: "{{ data_coop_website.domain }}" + LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}" + +- name: setup cryptohagen.dk website docker container + docker_container: + name: website + image: docker.data.coop/cryptohagen-website + networks: + - name: external_services + env: + VIRTUAL_HOST : "{{ cryptohagen_website.domain }}" + LETSENCRYPT_HOST: "{{ cryptohagen_website.domain }}" + LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}"