Compare commits
3 commits
ca6c3a96a1
...
270b7aa0e1
Author | SHA1 | Date | |
---|---|---|---|
Jesper Hess | 270b7aa0e1 | ||
Jesper Hess | b6c2db6434 | ||
Jesper Hess | 2af5165349 |
|
@ -1,48 +1,42 @@
|
|||
---
|
||||
- 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:
|
||||
image: "nextcloud:22-apache"
|
||||
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 }}"
|
||||
|
||||
- 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 }}"
|
||||
networks:
|
||||
nextcloud:
|
||||
postfix:
|
||||
external: true
|
||||
external_services:
|
||||
external: true
|
|
@ -8,7 +8,7 @@
|
|||
- name: run portainer
|
||||
docker_container:
|
||||
name: portainer
|
||||
image: portainer/portainer-ce:2.0.1
|
||||
image: portainer/portainer-ce:2.9.0
|
||||
restart_policy: always
|
||||
networks:
|
||||
- name: external_services
|
||||
|
|
Loading…
Reference in a new issue