67 lines
1.9 KiB
YAML
67 lines
1.9 KiB
YAML
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:
|
|
# user: "${UID}:${GID}"
|
|
image: redis:alpine
|
|
container_name: redis-dbcache
|
|
restart: unless-stopped
|
|
db:
|
|
image: mysql:latest
|
|
restart: always
|
|
command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW --log_bin_trust_function_creators=true
|
|
# user: ${UID}:${GID}
|
|
volumes:
|
|
- ${DB_LOCATION}:/var/lib/mysql
|
|
environment:
|
|
- MYSQL_ROOT_PASSWORD=ROOT_ACCESS_PASSWORD
|
|
- MYSQL_PASSWORD=${DBPASS}
|
|
- MYSQL_DATABASE=nextcloud
|
|
- MYSQL_USER=nextcloud
|
|
nextcloud:
|
|
image: nextcloud:29.0.0
|
|
container_name: nextcloud
|
|
# user: "${UID}:${GID}"
|
|
depends_on:
|
|
- db
|
|
links:
|
|
- db
|
|
environment:
|
|
TZ: "${TZ}"
|
|
VIRTUAL_HOST: "nextcloud.${DOMAIN}"
|
|
MYSQL_HOST: db
|
|
MYSQL_DATABASE: nextcloud
|
|
MYSQL_USER: nextcloud
|
|
MYSQL_PASSWORD: ${DBPASS}
|
|
REDIS_HOST: redis
|
|
LETSENCRYPT_HOST: nextcloud.${DOMAIN}
|
|
LETSENCRYPT_EMAIL: ${EMAIL}
|
|
# LETSENCRYPT_TEST: true
|
|
volumes:
|
|
- ${CONFIG_LOCATION}:/var/www/html/config:rw
|
|
- ${DATA_LOCATION}/Cloud/Nextcloud:/var/www/html/data:rw
|
|
restart: unless-stopped
|
|
networks:
|
|
default:
|
|
name: nginx-proxy
|
|
external: true
|