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-08 07:54:27 +00:00
|
|
|
src: configs/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:
|
2022-12-08 07:54:27 +00:00
|
|
|
src: configs/vhost/www
|
2022-12-07 20:49:36 +00:00
|
|
|
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
|
|
|
|
image: docker.data.coop/data-coop-website
|
|
|
|
restart_policy: unless-stopped
|
|
|
|
networks:
|
|
|
|
- name: external_services
|
|
|
|
env:
|
2022-12-08 07:54:27 +00:00
|
|
|
VIRTUAL_HOST : "{{ services.data_coop_website.domains | join(',') }}"
|
|
|
|
LETSENCRYPT_HOST: "{{ services.data_coop_website.domains | join(',') }}"
|
2022-11-26 08:15:18 +00:00
|
|
|
LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}"
|
|
|
|
labels:
|
|
|
|
com.centurylinklabs.watchtower.enable: "true"
|