Chad
fbad19dc51
* Add newlines in output. * Remove fancy DNS attempts to get NC and OO to talk. Just had to give NC the local IP through the Advanced settings. Yay!!
56 lines
1.6 KiB
YAML
56 lines
1.6 KiB
YAML
# Nextcloud configuration.
|
|
# This is a revised version of the original work here:
|
|
# https://hub.docker.com/_/nextcloud
|
|
|
|
# Changelog:
|
|
# 2023-07-16 Change from mariadb:10.5 to 10.6.
|
|
# 2023-08-20 Add Redis. (https://markontech.com/docker/setup-nextcloud-with-redis-using-docker/)
|
|
# 2023-08-21 Got NC to work with OO after specifying the Advanced parameters!
|
|
# OO Address: https://FQDN-For-Reverse-Proxied-OO-Server
|
|
# OO Secret: Contents-Of-$JWT_SECRET
|
|
# OO Header:
|
|
# OO Internal Address: http://docker-server-ip:8000
|
|
# NC Internal Address: http://docker-server-ip:8080
|
|
|
|
version: '3'
|
|
|
|
services:
|
|
db:
|
|
container_name: nc-db
|
|
image: mariadb:10.6
|
|
restart: always
|
|
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
|
|
volumes:
|
|
- ../../Volumes/Nextcloud/mariadb:/var/lib/mysql
|
|
environment:
|
|
- MYSQL_DATABASE=$MYSQL_DATABASE
|
|
- MYSQL_ROOT_PASSWORD=$MYSQL_ROOT_PASSWORD
|
|
- MYSQL_USER=$MYSQL_USER
|
|
- MYSQL_PASSWORD=$MYSQL_PASSWORD
|
|
|
|
redis:
|
|
container_name: nc-redis
|
|
image: redis
|
|
restart: always
|
|
command: redis-server --requirepass $REDIS_HOST_PASSWORD
|
|
|
|
app:
|
|
container_name: nc-app
|
|
image: nextcloud
|
|
restart: always
|
|
ports:
|
|
- 8080:80
|
|
links:
|
|
- db
|
|
- redis
|
|
volumes:
|
|
- ../../Volumes/Nextcloud/nextcloud:/var/www/html
|
|
environment:
|
|
- MYSQL_HOST=$MYSQL_HOST
|
|
- MYSQL_DATABASE=$MYSQL_DATABASE
|
|
- MYSQL_USER=$MYSQL_USER
|
|
- MYSQL_PASSWORD=$MYSQL_PASSWORD
|
|
- PHP_UPLOAD_LIMIT=$PHP_UPLOAD_LIMIT
|
|
- REDIS_HOST=$REDIS_HOST
|
|
- REDIS_HOST_PASSWORD=$REDIS_HOST_PASSWORD
|