2019-01-26 16:54:45 +00:00
|
|
|
---
|
2022-08-31 18:10:42 +00:00
|
|
|
- name: upload vhost config for cloud.data.coop
|
|
|
|
template:
|
|
|
|
src: files/configs/nextcloud/vhost
|
2022-09-02 10:23:19 +00:00
|
|
|
dest: "{{ nginx.volume_folder }}/vhost/{{ nextcloud.domain }}"
|
|
|
|
notify: "restart nginx"
|
2022-08-31 18:10:42 +00:00
|
|
|
|
2021-10-09 12:13:18 +00:00
|
|
|
- name: setup nextcloud containers
|
|
|
|
docker_compose:
|
|
|
|
project_name: "nextcloud"
|
|
|
|
pull: "yes"
|
|
|
|
definition:
|
|
|
|
services:
|
|
|
|
postgres:
|
|
|
|
image: "postgres:10"
|
|
|
|
restart: "unless-stopped"
|
|
|
|
networks:
|
|
|
|
- "nextcloud"
|
|
|
|
volumes:
|
|
|
|
- "{{ nextcloud.volume_folder }}/postgres:/var/lib/postgresql/data"
|
|
|
|
environment:
|
|
|
|
POSTGRES_DB: "nextcloud"
|
|
|
|
POSTGRES_PASSWORD: "{{ postgres_passwords.nextcloud }}"
|
|
|
|
POSTGRES_USER: "nextcloud"
|
|
|
|
|
|
|
|
app:
|
2022-11-21 22:31:22 +00:00
|
|
|
image: "nextcloud:23-apache"
|
2021-10-09 12:13:18 +00:00
|
|
|
restart: "unless-stopped"
|
|
|
|
networks:
|
|
|
|
- "nextcloud"
|
|
|
|
- "external_services"
|
|
|
|
volumes:
|
|
|
|
- "{{ nextcloud.volume_folder }}/app:/var/www/html"
|
|
|
|
environment:
|
|
|
|
VIRTUAL_HOST: "{{ nextcloud.domain }}"
|
|
|
|
LETSENCRYPT_HOST: "{{ nextcloud.domain }}"
|
|
|
|
LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}"
|
|
|
|
POSTGRES_HOST: "nextcloud_postgres_1"
|
|
|
|
POSTGRES_DB: "nextcloud"
|
|
|
|
POSTGRES_USER: "nextcloud"
|
|
|
|
POSTGRES_PASSWORD: "{{ postgres_passwords.nextcloud }}"
|
2019-01-26 16:54:45 +00:00
|
|
|
|
2021-10-09 12:13:18 +00:00
|
|
|
networks:
|
|
|
|
nextcloud:
|
|
|
|
postfix:
|
|
|
|
external: true
|
|
|
|
external_services:
|
2022-08-31 18:10:42 +00:00
|
|
|
external: true
|