media-server-docker-compose/nextcloud/docker-compose.yml

67 lines
1.9 KiB
YAML
Raw Normal View History

2024-04-28 01:43:53 -04:00
services:
collabora:
image: collabora/code:latest
restart: always
cap_add:
- MKNOD
# volumes:
# - ./collabora:/etc/coolwsd/
environment:
DOMAIN: "collabora.${DOMAIN}"
VIRTUAL_HOST: "collabora.${DOMAIN}"
EXTRA_PARAMS: "--o:ssl.enable=false --o:ssl.termination=true"
ALIASGROUP2: "https://collabora.${DOMAIN}:443"
ALIASGROUP3: "https://nextcloud.${DOMAIN}:443"
ALIASGROUP1: "http://192.168.86.30:9980"
SERVER_NAME: "collabora.${DOMAIN}"
USERNAME: "admin"
PASSWORD: "pass"
LETSENCRYPT_HOST: collabora.${DOMAIN}
LETSENCRYPT_EMAIL: ${EMAIL}
# ports:
# - 127.0.0.1:9980:9980
redis:
2024-06-05 16:59:33 -04:00
# user: "${UID}:${GID}"
image: redis:alpine
container_name: redis-dbcache
restart: unless-stopped
db:
image: mysql:latest
restart: always
2024-06-05 16:59:33 -04:00
command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW --log_bin_trust_function_creators=true
# user: ${UID}:${GID}
volumes:
2024-06-23 12:21:53 -04:00
- ${DB_LOCATION}:/var/lib/mysql
environment:
2024-06-05 16:59:33 -04:00
- MYSQL_ROOT_PASSWORD=ROOT_ACCESS_PASSWORD
- MYSQL_PASSWORD=${DBPASS}
- MYSQL_DATABASE=nextcloud
2024-06-05 16:59:33 -04:00
- MYSQL_USER=nextcloud
2024-04-28 01:43:53 -04:00
nextcloud:
2024-06-05 16:59:33 -04:00
image: nextcloud:29.0.0
2024-04-28 01:43:53 -04:00
container_name: nextcloud
2024-06-05 16:59:33 -04:00
# user: "${UID}:${GID}"
depends_on:
- db
links:
- db
2024-04-28 01:43:53 -04:00
environment:
TZ: "${TZ}"
VIRTUAL_HOST: "nextcloud.${DOMAIN}"
MYSQL_HOST: db
MYSQL_DATABASE: nextcloud
2024-06-05 16:59:33 -04:00
MYSQL_USER: nextcloud
2024-04-28 01:43:53 -04:00
MYSQL_PASSWORD: ${DBPASS}
REDIS_HOST: redis
LETSENCRYPT_HOST: nextcloud.${DOMAIN}
LETSENCRYPT_EMAIL: ${EMAIL}
2024-06-05 16:59:33 -04:00
# LETSENCRYPT_TEST: true
2024-04-28 01:43:53 -04:00
volumes:
2024-06-05 16:59:33 -04:00
- ${CONFIG_LOCATION}:/var/www/html/config:rw
- ${DATA_LOCATION}/Cloud/Nextcloud:/var/www/html/data:rw
2024-04-28 01:43:53 -04:00
restart: unless-stopped
networks:
default:
name: nginx-proxy
external: true