lab-ansible/roles/apps/templates/compose-files/nextcloud.yml.j2

66 lines
1.9 KiB
Plaintext
Raw Normal View History

2023-12-29 18:07:08 +00:00
{# code: language=ansible-jinja #}
# THIS FILE IS MANAGED BY ANSIBLE
services:
redis:
image: redis:{{ apps_vars.nextcloud.redis_version }}
restart: always
command: redis-server --requirepass {{ redis_passwords.nextcloud }}
tmpfs:
- /var/lib/redis
app:
image: nextcloud:{{ apps_vars.nextcloud.version }}
restart: always
environment:
2023-12-27 23:00:12 +00:00
POSTGRES_HOST: {{ db_host }}
2024-03-02 21:36:05 +00:00
POSTGRES_DB: {{ databases.nextcloud.db }}
POSTGRES_USER: {{ databases.nextcloud.user }}
2023-11-26 16:37:17 +00:00
POSTGRES_PASSWORD: {{ databases.nextcloud.password }}
REDIS_HOST: redis
REDIS_HOST_PASSWORD: {{ redis_passwords.nextcloud }}
MAIL_FROM_ADDRESS: noreply
MAIL_DOMAIN: {{ apps_vars.nextcloud.domain }}
SMTP_AUTHTYPE: PLAIN
SMTP_HOST: postfix
SMTP_PORT: 587
OVERWRITEHOST: {{ apps_vars.nextcloud.domain }}
OVERWRITEPROTOCOL: https
OVERWRITECLIURL: https://{{ apps_vars.nextcloud.domain }}
2023-12-28 23:22:15 +00:00
TRUSTED_PROXIES: '{{ proxy_host }} {{ apps_vars.nginx.docker_ipv4 }} fd02::/64'
NEXTCLOUD_TRUSTED_DOMAINS: {{ apps_vars.nextcloud.domain }}
NEXTCLOUD_INIT_LOCK: true
PHP_MEMORY_LIMIT: 2G
2024-06-22 14:04:05 +00:00
PHP_UPLOAD_LIMIT: 0
APACHE_BODY_LIMIT: 0
networks:
default:
{{ apps_shared_docker_network }}:
aliases:
- nextcloud
2024-02-10 19:03:04 +00:00
{% if 'postfix' in apps_include %}
{{ apps_postfix_docker_network }}:
{% endif %}
volumes:
2023-11-05 17:27:49 +00:00
- "./data/app:/var/www/html:rw"
- "./data/apache2/remoteip.conf:/etc/apache2/conf-enabled/remoteip.conf:ro"
depends_on:
- redis
cron:
image: nextcloud:{{ apps_vars.nextcloud.version }}
restart: always
entrypoint: /cron.sh
volumes:
2023-11-05 17:27:49 +00:00
- "./data/app:/var/www/html:rw"
depends_on:
- app
networks:
{{ apps_shared_docker_network }}:
2023-11-05 19:54:47 +00:00
external: true
2024-02-04 17:03:15 +00:00
{% if 'postfix' in apps_include %}
{{ apps_postfix_docker_network }}:
external: true
{% endif %}