56 lines
1.5 KiB
YAML
56 lines
1.5 KiB
YAML
version: '3'
|
|
|
|
services:
|
|
db:
|
|
image: mariadb
|
|
restart: always
|
|
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
|
|
expose:
|
|
- 3306
|
|
volumes:
|
|
- ./mnt/db:/var/lib/mysql
|
|
environment:
|
|
- "MYSQL_ROOT_PASSWORD=${PASS}"
|
|
- "MYSQL_PASSWORD=${PASS}"
|
|
- "MYSQL_DATABASE=nextcloud"
|
|
- "MYSQL_USER=nextcloud"
|
|
|
|
app:
|
|
image: nextcloud
|
|
restart: always
|
|
depends_on:
|
|
- redis
|
|
volumes:
|
|
- ./mnt/nextcloud:/var/www/html
|
|
environment:
|
|
- "VIRTUAL_HOST=${HOST}"
|
|
- "LETSENCRYPT_HOST=${HOST}"
|
|
- "MYSQL_PASSWORD=${PASS}"
|
|
- "MYSQL_DATABASE=nextcloud"
|
|
- "MYSQL_USER=nextcloud"
|
|
- "MYSQL_HOST=db"
|
|
- "NEXTCLOUD_ADMIN_USER=admin"
|
|
- "NEXTCLOUD_ADMIN_PASSWORD=${PASS}"
|
|
- "REDIS_HOST=redis"
|
|
- "SMTP_HOST=${SMTP_HOST}"
|
|
- "SMTP_SECURE=ssl"
|
|
- "SMTP_NAME=${SMTP_USER}@${SMTP_DOMAIN}"
|
|
- "SMTP_PASSWORD=${SMTP_PASS}"
|
|
- "MAIL_FROM_ADDRESS=${SMTP_USER}"
|
|
- "MAIL_DOMAIN=${SMTP_DOMAIN}"
|
|
- "NEXTCLOUD_TRUSTED_DOMAINS=${HOST} ${ALLOWED_IPS}"
|
|
networks:
|
|
- default
|
|
- 10000-nginx-proxy_nginx-proxy
|
|
|
|
redis:
|
|
image: redis
|
|
expose:
|
|
- 6379
|
|
depends_on:
|
|
- db
|
|
|
|
networks:
|
|
10000-nginx-proxy_nginx-proxy:
|
|
external: true
|