miniNAS/docker_compose/nextcloud.yml

47 lines
1.2 KiB
YAML
Raw Normal View History

2021-12-26 16:23:16 +01:00
version: '2'
services:
db:
image: mariadb:10.5
# restart: always
2021-12-26 16:23:16 +01:00
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
volumes:
- $NEXTCLOUD_DB_DATADIR:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=$NEXTCLOUD_MYSQL_ROOTPWD
- MYSQL_PASSWORD=$NEXTCLOUD_MYSQL_PWD
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
networks:
- default
2021-12-26 16:23:16 +01:00
app:
image: nextcloud:latest
# restart: always
2021-12-26 16:23:16 +01:00
expose:
- "80"
- "443"
links:
- db
volumes:
- $NEXTCLOUD_DATADIR:/var/www/html
environment:
# - NEXTCLOUD_ADMIN_USER=testuser #this is just for initial setup, and the user can be delete afterwards
# - NEXTCLOUD_ADMIN_PASSWORD=test123
- NEXTCLOUD_TRUSTED_DOMAINS=nextcloud.emamaker.com emamaker.com files.emamaker.com
2021-12-26 16:23:16 +01:00
- MYSQL_PASSWORD=$NEXTCLOUD_MYSQL_PWD
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
- MYSQL_HOST=db
- VIRTUAL_HOST=files.$LETSENCRYPT_DOMAIN
- VIRTUAL_PORT=80
- LETSENCRYPT_HOST=files.$LETSENCRYPT_DOMAIN
2021-12-26 16:23:16 +01:00
- LETSENCRYPT_EMAIL=$LETSENCRYPT_EMAIL
networks:
- default
2021-12-26 16:23:16 +01:00
networks:
default:
external:
name: $SERVER_DOCKER_NETWORKNAME