Compare commits
2 commits
77484f1944
...
e2fae25592
| Author | SHA1 | Date | |
|---|---|---|---|
| e2fae25592 | |||
| 468ed34550 |
3 changed files with 22 additions and 4 deletions
|
|
@ -14,6 +14,7 @@ nextcloud_image: "nextcloud:fpm"
|
||||||
nextcloud_redis_image: "redis:latest"
|
nextcloud_redis_image: "redis:latest"
|
||||||
nextcloud_port: 80
|
nextcloud_port: 80
|
||||||
nextcloud_extra_hosts: []
|
nextcloud_extra_hosts: []
|
||||||
|
nextcloud_extra_networks: []
|
||||||
nextcloud_allow_local_remote_servers: false # Set to true to allow requests to local network (dev only)
|
nextcloud_allow_local_remote_servers: false # Set to true to allow requests to local network (dev only)
|
||||||
|
|
||||||
nextcloud_postgres_image: "postgres:15"
|
nextcloud_postgres_image: "postgres:15"
|
||||||
|
|
@ -58,6 +59,7 @@ nextcloud_trusted_proxies: "172.16.0.0/12"
|
||||||
|
|
||||||
# File locking and real-time push notifications
|
# File locking and real-time push notifications
|
||||||
nextcloud_enable_notify_push: false
|
nextcloud_enable_notify_push: false
|
||||||
|
nextcloud_notify_push_image: "icewind1991/notify_push:1.3.1"
|
||||||
|
|
||||||
# Non-default apps to install and enable
|
# Non-default apps to install and enable
|
||||||
nextcloud_apps_to_install:
|
nextcloud_apps_to_install:
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,12 @@
|
||||||
state: directory
|
state: directory
|
||||||
mode: '0755'
|
mode: '0755'
|
||||||
|
|
||||||
|
- name: Ensure extra networks exist
|
||||||
|
community.docker.docker_network:
|
||||||
|
name: "{{ item }}"
|
||||||
|
state: present
|
||||||
|
loop: "{{ nextcloud_extra_networks }}"
|
||||||
|
|
||||||
- name: Create docker-compose file for nextcloud
|
- name: Create docker-compose file for nextcloud
|
||||||
template:
|
template:
|
||||||
src: docker-compose.yml.j2
|
src: docker-compose.yml.j2
|
||||||
|
|
|
||||||
|
|
@ -66,6 +66,9 @@ services:
|
||||||
- {{ nextcloud_docker_volume_dir }}/nextcloud/:/var/www/html
|
- {{ nextcloud_docker_volume_dir }}/nextcloud/:/var/www/html
|
||||||
networks:
|
networks:
|
||||||
- {{ nextcloud_backend_network }}
|
- {{ nextcloud_backend_network }}
|
||||||
|
{% for net in nextcloud_extra_networks %}
|
||||||
|
- {{ net }}
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
nextcloud:
|
nextcloud:
|
||||||
image: {{ nextcloud_image }}
|
image: {{ nextcloud_image }}
|
||||||
|
|
@ -79,8 +82,8 @@ services:
|
||||||
POSTGRES_DB: {{ nextcloud_postgres_db }}
|
POSTGRES_DB: {{ nextcloud_postgres_db }}
|
||||||
POSTGRES_USER: {{ nextcloud_postgres_user }}
|
POSTGRES_USER: {{ nextcloud_postgres_user }}
|
||||||
POSTGRES_PASSWORD: {{ nextcloud_postgres_password }}
|
POSTGRES_PASSWORD: {{ nextcloud_postgres_password }}
|
||||||
NEXTCLOUD_ADMIN_USER: {{ nextcloud_admin_user }}
|
NEXTCLOUD_ADMIN_USER: {{ nextcloud_admin_user }}
|
||||||
NEXTCLOUD_ADMIN_PASSWORD: {{ nextcloud_admin_password }}
|
NEXTCLOUD_ADMIN_PASSWORD: {{ nextcloud_admin_password }}
|
||||||
REDIS_HOST: redis
|
REDIS_HOST: redis
|
||||||
PHP_MEMORY_LIMIT: {{ nextcloud_memory_limit_mb }}M
|
PHP_MEMORY_LIMIT: {{ nextcloud_memory_limit_mb }}M
|
||||||
PHP_UPLOAD_LIMIT: {{ nextcloud_upload_limit_mb }}M
|
PHP_UPLOAD_LIMIT: {{ nextcloud_upload_limit_mb }}M
|
||||||
|
|
@ -102,6 +105,9 @@ services:
|
||||||
- {{ nextcloud_docker_volume_dir }}/nextcloud/:/var/www/html
|
- {{ nextcloud_docker_volume_dir }}/nextcloud/:/var/www/html
|
||||||
networks:
|
networks:
|
||||||
- {{ nextcloud_backend_network }}
|
- {{ nextcloud_backend_network }}
|
||||||
|
{% for net in nextcloud_extra_networks %}
|
||||||
|
- {{ net }}
|
||||||
|
{% endfor %}
|
||||||
{% if nextcloud_extra_hosts is defined and nextcloud_extra_hosts | length > 0 %}
|
{% if nextcloud_extra_hosts is defined and nextcloud_extra_hosts | length > 0 %}
|
||||||
extra_hosts:
|
extra_hosts:
|
||||||
{% for host in nextcloud_extra_hosts %}
|
{% for host in nextcloud_extra_hosts %}
|
||||||
|
|
@ -111,7 +117,7 @@ services:
|
||||||
|
|
||||||
{% if nextcloud_enable_notify_push %}
|
{% if nextcloud_enable_notify_push %}
|
||||||
notify-push:
|
notify-push:
|
||||||
image: icewind1991/notify_push
|
image: {{ nextcloud_notify_push_image }}
|
||||||
restart: always
|
restart: always
|
||||||
depends_on:
|
depends_on:
|
||||||
- redis
|
- redis
|
||||||
|
|
@ -145,4 +151,8 @@ services:
|
||||||
networks:
|
networks:
|
||||||
{{ nextcloud_backend_network }}:
|
{{ nextcloud_backend_network }}:
|
||||||
{{ nextcloud_traefik_network }}:
|
{{ nextcloud_traefik_network }}:
|
||||||
external: true
|
external: true
|
||||||
|
{% for net in nextcloud_extra_networks %}
|
||||||
|
{{ net }}:
|
||||||
|
external: true
|
||||||
|
{% endfor %}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue