49 lines
1.1 KiB
YAML
49 lines
1.1 KiB
YAML
---
|
|
|
|
- name: nextcloud network
|
|
docker_network:
|
|
name: nextcloud
|
|
|
|
- name: nextcloud database volume
|
|
docker_volume:
|
|
name: nextcloud_db
|
|
|
|
- name: nextcloud database container
|
|
docker_container:
|
|
name: nextcloud_db
|
|
image: postgres:10
|
|
state: started
|
|
restart_policy: always
|
|
networks:
|
|
- name: nextcloud
|
|
volumes:
|
|
- nextcloud_db:/var/lib/postgresql/data
|
|
env:
|
|
POSTGRES_DB: somethingelse
|
|
POSTGRES_USER: nextcloud
|
|
POSTGRES_PASSWORD: "{{ postgres_passwords.nextcloud }}"
|
|
|
|
- name: nextcloud app volume
|
|
docker_volume:
|
|
name: nextcloud_app
|
|
|
|
- name: nextcloud app container
|
|
docker_container:
|
|
name: nextcloud_app
|
|
image: nextcloud:apache
|
|
state: started
|
|
restart_policy: always
|
|
networks:
|
|
- name: nextcloud
|
|
- name: external_services
|
|
volumes:
|
|
- nextcloud_app:/var/www/html
|
|
env:
|
|
VIRTUAL_HOST: "{{ nextcloud.domain }}"
|
|
LETSENCRYPT_HOST: "{{ nextcloud.domain }}"
|
|
LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}"
|
|
POSTGRES_HOST: nextcloud_db
|
|
POSTGRES_DB: nextcloud
|
|
POSTGRES_USER: nextcloud
|
|
POSTGRES_PASSWORD: "{{ postgres_passwords.nextcloud }}"
|