2021-12-26 16:23:16 +01:00
|
|
|
version: '2'
|
|
|
|
|
|
|
|
services:
|
|
|
|
db:
|
|
|
|
image: mariadb:10.5
|
2022-01-03 12:31:54 +01:00
|
|
|
# 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
|
2022-01-03 12:31:54 +01:00
|
|
|
networks:
|
|
|
|
- default
|
2021-12-26 16:23:16 +01:00
|
|
|
|
|
|
|
app:
|
|
|
|
image: nextcloud:latest
|
2022-01-03 12:31:54 +01:00
|
|
|
# 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
|
2022-01-03 12:31:54 +01:00
|
|
|
- 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
|
2022-01-03 12:31:54 +01:00
|
|
|
- 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
|
2022-01-03 12:31:54 +01:00
|
|
|
networks:
|
|
|
|
- default
|
2021-12-26 16:23:16 +01:00
|
|
|
|
|
|
|
networks:
|
|
|
|
default:
|
|
|
|
external:
|
|
|
|
name: $SERVER_DOCKER_NETWORKNAME
|