2022-12-29 21:13:31 +00:00
|
|
|
# vim: ft=yaml.ansible
|
2022-11-26 08:15:18 +00:00
|
|
|
---
|
2022-12-07 20:49:36 +00:00
|
|
|
- name: Upload vhost config for root domain
|
|
|
|
copy:
|
2022-12-07 20:51:51 +00:00
|
|
|
src: files/configs/matrix/vhost-root
|
2022-12-07 20:49:36 +00:00
|
|
|
dest: "{{ services.nginx_proxy.volume_folder }}/vhost/{{ base_domain }}"
|
|
|
|
|
|
|
|
- name: Upload vhost config for WWW domain
|
|
|
|
copy:
|
|
|
|
src: files/configs/vhost-www
|
|
|
|
dest: "{{ services.nginx_proxy.volume_folder }}/vhost/www.{{ base_domain }}"
|
2022-11-26 08:15:18 +00:00
|
|
|
|
|
|
|
- name: setup data.coop website docker container
|
|
|
|
docker_container:
|
|
|
|
name: data.coop_website
|
2023-07-25 20:17:35 +00:00
|
|
|
image: docker.data.coop/data-coop-website:{{ services.data_coop_website.version }}
|
2022-11-26 08:15:18 +00:00
|
|
|
restart_policy: unless-stopped
|
|
|
|
networks:
|
|
|
|
- name: external_services
|
|
|
|
env:
|
|
|
|
VIRTUAL_HOST : "{{ services.data_coop_website.domains|join(',') }}"
|
|
|
|
LETSENCRYPT_HOST: "{{ services.data_coop_website.domains|join(',') }}"
|
|
|
|
LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}"
|
2023-07-25 20:17:35 +00:00
|
|
|
|
|
|
|
- name: setup staging data.coop website using hugo
|
|
|
|
docker_container:
|
|
|
|
name: staging.data.coop_website
|
|
|
|
image: docker.data.coop/data-coop-website:{{ services.data_coop_website.staging_version }}
|
|
|
|
restart_policy: unless-stopped
|
|
|
|
networks:
|
|
|
|
- name: external_services
|
|
|
|
env:
|
|
|
|
VIRTUAL_HOST : "{{ services.data_coop_website.staging_domain }}"
|
|
|
|
LETSENCRYPT_HOST: "{{ services.data_coop_website.staging_domain }}"
|
|
|
|
LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}"
|