2021-12-26 16:23:16 +01:00
|
|
|
version: '2'
|
|
|
|
|
|
|
|
services:
|
|
|
|
db:
|
|
|
|
image: mariadb:10.5
|
2022-01-11 22:15:49 +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-11 22:15:49 +01:00
|
|
|
restart: always
|
2021-12-26 16:23:16 +01:00
|
|
|
expose:
|
|
|
|
- "80"
|
|
|
|
- "443"
|
|
|
|
links:
|
|
|
|
- db
|
|
|
|
volumes:
|
|
|
|
- $NEXTCLOUD_DATADIR:/var/www/html
|
2022-01-11 22:15:49 +01:00
|
|
|
- $SYNCTHING_DIR:/syncthing
|
2021-12-26 16:23:16 +01:00
|
|
|
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-11 22:15:49 +01:00
|
|
|
- VIRTUAL_HOST=nextcloud.$LETSENCRYPT_DOMAIN
|
2022-01-03 12:31:54 +01:00
|
|
|
- VIRTUAL_PORT=80
|
2022-01-11 22:15:49 +01:00
|
|
|
- LETSENCRYPT_HOST=nextcloud.$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
|