forked from data.coop/ansible
Deploy https://data.coop as a container
This commit is contained in:
parent
1400b18930
commit
e118b30873
|
@ -21,6 +21,7 @@
|
|||
- codimd
|
||||
- netdata
|
||||
- docker_registry
|
||||
- website
|
||||
|
||||
smtp_host: postfix
|
||||
smtp_port: 587
|
||||
|
@ -29,4 +30,4 @@
|
|||
- import_role:
|
||||
name: ubuntu_base
|
||||
- import_role:
|
||||
name: docker
|
||||
name: docker
|
|
@ -39,4 +39,8 @@ netdata:
|
|||
docker_registry:
|
||||
domain: "docker.{{ base_domain }}"
|
||||
volume_folder: "{{ volume_root_folder }}/docker-registry"
|
||||
|
||||
username: "docker"
|
||||
password: "{{ docker_password }}"
|
||||
|
||||
website:
|
||||
domain: "{{ base_domain }}"
|
||||
|
|
12
roles/docker/tasks/services/website.yml
Normal file
12
roles/docker/tasks/services/website.yml
Normal file
|
@ -0,0 +1,12 @@
|
|||
---
|
||||
|
||||
- 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 }}"
|
Loading…
Reference in a new issue