83 lines
2.6 KiB
YAML
83 lines
2.6 KiB
YAML
services:
|
|
db:
|
|
image: mariadb:10.6
|
|
container_name: nextcloud-db
|
|
command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW
|
|
volumes:
|
|
- /mnt/user/appdata/nextcloud/db:/var/lib/mysql
|
|
environment:
|
|
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
|
|
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
|
|
- MYSQL_DATABASE=nextcloud
|
|
- MYSQL_USER=nextcloud
|
|
labels:
|
|
net.unraid.docker.icon: "https://raw.githubusercontent.com/linuxserver/docker-templates/refs/heads/master/linuxserver.io/img/mariadb-icon.png"
|
|
folder.view2: "Databases"
|
|
|
|
redis:
|
|
image: redis
|
|
container_name: nextcloud-cache
|
|
volumes:
|
|
- /mnt/user/appdata/nextcloud/cache:/data
|
|
command: redis-server --requirepass ${REDIS_HOST_PASSWORD}
|
|
labels:
|
|
net.unraid.docker.icon: "https://cdn.jsdelivr.net/gh/selfhst/icons@main/png/redis.png"
|
|
folder.view2: "Databases"
|
|
|
|
appapi-dsp:
|
|
image: ghcr.io/nextcloud/nextcloud-appapi-dsp:release
|
|
networks:
|
|
- nextcloud-exapps
|
|
environment:
|
|
- NC_HAPROXY_PASSWORD=${APPAPI_DSP_PASSWORD}
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
privileged: true
|
|
labels:
|
|
net.unraid.docker.icon: "https://raw.githubusercontent.com/linuxserver/docker-templates/refs/heads/master/linuxserver.io/img/nextcloud-icon.png"
|
|
folder.view2: "Nextcloud ExApps"
|
|
|
|
app:
|
|
image: nextcloud
|
|
container_name: nextcloud
|
|
depends_on:
|
|
- db
|
|
- redis
|
|
- appapi-dsp
|
|
networks:
|
|
- default
|
|
- nextcloud-exapps
|
|
- pangolin
|
|
volumes:
|
|
- /mnt/user/appdata/nextcloud/app:/var/www/html
|
|
- /mnt/user/nextcloud-data:/var/www/html/data
|
|
environment:
|
|
- NEXTCLOUD_ADMIN_USER=${NEXTCLOUD_ADMIN_USER}
|
|
- NEXTCLOUD_ADMIN_PASSWORD=${NEXTCLOUD_ADMIN_PASSWORD}
|
|
- NEXTCLOUD_TRUSTED_DOMAINS=${NEXTCLOUD_TRUSTED_DOMAINS}
|
|
|
|
- MYSQL_DATABASE=nextcloud
|
|
- MYSQL_USER=nextcloud
|
|
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
|
|
- MYSQL_HOST=db
|
|
- REDIS_HOST=redis
|
|
- REDIS_PORT=6379
|
|
- REDIS_HOST_PASSWORD=${REDIS_HOST_PASSWORD}
|
|
|
|
- APACHE_DISABLE_REWRITE_IP=1
|
|
- APACHE_BODY_LIMIT=0
|
|
- TRUSTED_PROXIES=172.28.0.2
|
|
labels:
|
|
net.unraid.docker.icon: "https://raw.githubusercontent.com/linuxserver/docker-templates/refs/heads/master/linuxserver.io/img/nextcloud-icon.png"
|
|
net.unraid.docker.webui: "https://cloud.homecube.org"
|
|
folder.view2: "Services"
|
|
|
|
networks:
|
|
nextcloud-exapps:
|
|
name: nextcloud-exapps
|
|
driver: bridge
|
|
|
|
pangolin:
|
|
name: pangolin_net
|
|
external: true
|