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

43 lines
1.1 KiB
YAML
Raw Normal View History

2024-04-28 01:43:53 -04:00
services:
redis:
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
volumes:
- db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=${DBPASS}
- MYSQL_PASSWORD=${DBPASS}
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=root
2024-04-28 01:43:53 -04:00
nextcloud:
image: lscr.io/linuxserver/nextcloud:latest
container_name: nextcloud
environment:
PUID: "1000"
PGID: "1000"
TZ: "${TZ}"
VIRTUAL_HOST: "nextcloud.${DOMAIN}"
MYSQL_HOST: db
MYSQL_DATABASE: nextcloud
MYSQL_USER: root
MYSQL_PASSWORD: ${DBPASS}
REDIS_HOST: redis
LETSENCRYPT_HOST: nextcloud.${DOMAIN}
LETSENCRYPT_EMAIL: ${EMAIL}
LETSENCRYPT_TEST: true
2024-04-28 01:43:53 -04:00
volumes:
- ${CONFIG_LOCATION}/nextcloud:/config
- ${DATA_LOCATION}/Cloud/Nextcloud:/data
restart: unless-stopped
volumes:
db:
2024-04-28 01:43:53 -04:00
networks:
default:
name: nginx-proxy
external: true