2021-09-03 17:19:56 +00:00
|
|
|
version: '3.3'
|
|
|
|
|
|
|
|
networks:
|
|
|
|
nextcloud:
|
|
|
|
external: true
|
|
|
|
|
|
|
|
services:
|
|
|
|
db:
|
|
|
|
container_name: ${appname}-db
|
|
|
|
image: mariadb:${mariadb_version}
|
|
|
|
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- ./data/sql:/var/lib/mysql:rw
|
|
|
|
- ./sql.confd:/etc/mysql/conf.d
|
|
|
|
environment:
|
|
|
|
- MYSQL_ROOT_PASSWORD=${sql_root_pwd}
|
|
|
|
- MYSQL_PASSWORD=${sql_pwd}
|
|
|
|
- MYSQL_DATABASE=${sql_db}
|
|
|
|
- MYSQL_USER=${sql_user}
|
|
|
|
# ports:
|
|
|
|
# - 3308:3306
|
|
|
|
networks:
|
|
|
|
- nextcloud
|
|
|
|
restart: always
|
|
|
|
|
|
|
|
redis:
|
|
|
|
container_name: ${appname}-redis
|
|
|
|
image: redis:buster
|
|
|
|
command: redis-server --requirepass ${redis_host_pass}
|
|
|
|
privileged: true
|
|
|
|
networks:
|
|
|
|
- nextcloud
|
|
|
|
restart: always
|
|
|
|
|
|
|
|
app:
|
|
|
|
container_name: ${appname}
|
|
|
|
image: nextcloud:${nextcloud_tag}
|
2021-09-25 16:21:44 +00:00
|
|
|
ports:
|
|
|
|
- 8880:80
|
2021-09-03 17:19:56 +00:00
|
|
|
volumes:
|
|
|
|
- ./data/app:/var/www/html
|
|
|
|
- ./data/config:/var/www/html/config
|
|
|
|
# - ./data/theme:/var/www/html/themes/coke
|
|
|
|
- ${data_dir}:/var/www/html/data
|
|
|
|
- /home/jandieman/test:/mnt/test
|
|
|
|
environment:
|
|
|
|
- MYSQL_HOST=db
|
|
|
|
- NEXTCLOUD_TRUSTED_DOMAINS=${domains}
|
|
|
|
# - APACHE_DISABLE_REWRITE_IP=1
|
|
|
|
- TRUSTED_PROXIES=${proxies}
|
|
|
|
- REDIS_HOST=${appname}-redis
|
|
|
|
- REDIS_HOST_PORT=${redis_host_port}
|
|
|
|
- REDIS_HOST_PASSWORD=24295
|
|
|
|
- PHP_MEMORY_LIMIT=${php_memory_limit}
|
|
|
|
- PHP_UPLOAD_LIMIT=${php_upload_limit}
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- redis
|
|
|
|
networks:
|
|
|
|
- nextcloud
|
|
|
|
restart: always
|
|
|
|
|
|
|
|
cron:
|
|
|
|
container_name: ${appname}-cron
|
|
|
|
image: rcdailey/nextcloud-cronjob
|
|
|
|
restart: always
|
|
|
|
network_mode: none
|
|
|
|
depends_on:
|
|
|
|
- app
|
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
environment:
|
|
|
|
- NEXTCLOUD_CONTAINER_NAME=${appname}
|
|
|
|
# - NEXTCLOUD_PROJECT_NAME=nextcloud
|
|
|
|
#
|
|
|
|
# turn:
|
|
|
|
# container_name: ${appname}-coturn
|
|
|
|
# image: instrumentisto/coturn:4.5
|
|
|
|
# restart: always
|
|
|
|
# networks:
|
|
|
|
# - nextcloud
|
|
|
|
# ports:
|
|
|
|
# - 3478:3478/tcp
|
|
|
|
# - 3478:3478/udp
|
|
|
|
# - 49153-49306:49153-49306/udp
|
|
|
|
# volumes:
|
|
|
|
# - ./turnserver.conf:/etc/coturn/turnserver.conf
|
|
|
|
# depends_on:
|
|
|
|
# - app
|
|
|
|
# command:
|
|
|
|
# - --realm=${domains}
|
|
|
|
|
|
|
|
collabora:
|
2022-05-27 16:29:57 +00:00
|
|
|
image: collabora/code
|
|
|
|
container_name: ${appname}-collabora
|
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- proxy
|
|
|
|
# volumes:
|
|
|
|
# - ./coolwsd.xml:/etc/loolwsd/coolwsd.xml
|
|
|
|
ports:
|
|
|
|
- 9980:9980
|
|
|
|
depends_on:
|
|
|
|
- app
|
|
|
|
environment:
|
|
|
|
# - domain=${collabora_host}
|
|
|
|
- dictionaries=en_GB
|
|
|
|
- username=admin
|
|
|
|
- password=${sql_root_pwd}
|
|
|
|
- aliasgroup1=https://${nextcloud_host}:443,https://${collabora_host}:443
|
|
|
|
# - aliasgroup2=https://cloud.koke.estate:443,https://cloud\\.koke\\.estate:443
|
|
|
|
- server_name=${collabora_host}
|
|
|
|
# - "extra_params=--o:ssl.enable=false --o:ssl.termination=true"
|
|
|
|
# - "extra_params=--o:net.post_allow.host=65\\.217\\.165\\.45"
|
|
|
|
cap_add:
|
|
|
|
- MKNOD
|
|
|
|
# privileged: true
|
|
|
|
tty: true
|