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

46 lines
1.2 KiB
YAML
Raw Normal View History

2024-04-28 01:43:53 -04:00
services:
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