2023-10-31 21:06:25 +00:00
|
|
|
# code: language=ansible-jinja
|
|
|
|
version: "3.8"
|
|
|
|
|
|
|
|
services:
|
|
|
|
redis:
|
|
|
|
image: redis:{{ apps_vars.nextcloud.redis_version }}
|
|
|
|
restart: always
|
2023-11-03 22:38:15 +00:00
|
|
|
command: redis-server --requirepass {{ redis_passwords.nextcloud }}
|
2023-10-31 21:06:25 +00:00
|
|
|
tmpfs:
|
|
|
|
- /var/lib/redis
|
|
|
|
|
|
|
|
app:
|
|
|
|
image: nextcloud:{{ apps_vars.nextcloud.version }}
|
|
|
|
restart: always
|
|
|
|
environment:
|
|
|
|
POSTGRES_HOST: "{{ db_host_ip }}"
|
|
|
|
POSTGRES_DB: nextcloud
|
|
|
|
POSTGRES_USER: nextcloud
|
2023-11-03 22:38:15 +00:00
|
|
|
POSTGRES_PASSWORD: {{ db_passwords.nextcloud }}
|
2023-10-31 21:06:25 +00:00
|
|
|
REDIS_HOST: redis
|
2023-11-03 22:38:15 +00:00
|
|
|
REDIS_HOST_PASSWORD: {{ redis_passwords.nextcloud }}
|
2023-10-31 21:06:25 +00:00
|
|
|
MAIL_FROM_ADDRESS: noreply
|
|
|
|
MAIL_DOMAIN: {{ apps_vars.nextcloud.domain }}
|
|
|
|
SMTP_AUTHTYPE: PLAIN
|
|
|
|
SMTP_HOST: postfix
|
|
|
|
SMTP_PORT: 587
|
|
|
|
TRUSTED_PROXIES: "{{ apps_vars.caddy.docker_ipv4 }}"
|
|
|
|
OVERWRITEHOST: {{ apps_vars.nextcloud.domain }}
|
|
|
|
OVERWRITEPROTOCOL: https
|
|
|
|
OVERWRITECLIURL: https://{{ apps_vars.nextcloud.domain }}
|
|
|
|
NEXTCLOUD_INIT_LOCK: true
|
|
|
|
PHP_MEMORY_LIMIT: 2G
|
|
|
|
PHP_UPLOAD_LIMIT: 16G
|
|
|
|
networks:
|
|
|
|
default:
|
2023-11-03 22:38:15 +00:00
|
|
|
{{ apps_postfix_docker_network }}:
|
|
|
|
{{ apps_shared_docker_network }}:
|
2023-10-31 21:06:25 +00:00
|
|
|
aliases:
|
|
|
|
- nextcloud
|
|
|
|
volumes:
|
2023-11-03 22:38:15 +00:00
|
|
|
- "./app:/var/www/html:rw"
|
|
|
|
- "./apache2/remoteip.conf:/etc/apache2/conf-enabled/remoteip.conf:ro"
|
2023-10-31 21:06:25 +00:00
|
|
|
depends_on:
|
|
|
|
- redis
|
|
|
|
|
|
|
|
cron:
|
|
|
|
image: nextcloud:{{ apps_vars.nextcloud.version }}
|
|
|
|
restart: always
|
|
|
|
entrypoint: /cron.sh
|
|
|
|
volumes:
|
2023-11-03 22:38:15 +00:00
|
|
|
- "./app:/var/www/html:rw"
|
2023-10-31 21:06:25 +00:00
|
|
|
depends_on:
|
|
|
|
- app
|
|
|
|
|
|
|
|
networks:
|
2023-11-03 22:38:15 +00:00
|
|
|
{{ apps_postfix_docker_network }}:
|
2023-10-31 21:06:25 +00:00
|
|
|
external: true
|
2023-11-03 22:38:15 +00:00
|
|
|
{{ apps_shared_docker_network }}:
|
2023-10-31 21:06:25 +00:00
|
|
|
external: true
|