43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
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
|
|
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
|
|
volumes:
|
|
- ${CONFIG_LOCATION}/nextcloud:/config
|
|
- ${DATA_LOCATION}/Cloud/Nextcloud:/data
|
|
restart: unless-stopped
|
|
volumes:
|
|
db:
|
|
networks:
|
|
default:
|
|
name: nginx-proxy
|
|
external: true
|