From 017010d670e7e91893fae305067311447e2ee346 Mon Sep 17 00:00:00 2001 From: DoTheEvolution Date: Wed, 20 May 2020 20:03:11 +0200 Subject: [PATCH] update --- nextcloud/readme.md | 27 ++++++++------------------- 1 file changed, 8 insertions(+), 19 deletions(-) diff --git a/nextcloud/readme.md b/nextcloud/readme.md index 3868737..a3b9f9e 100644 --- a/nextcloud/readme.md +++ b/nextcloud/readme.md @@ -77,13 +77,9 @@ services: hostname: nextcloud-db command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW restart: unless-stopped + env_file: .env volumes: - ./nextcloud-data-db:/var/lib/mysql - environment: - - MYSQL_ROOT_PASSWORD - - MYSQL_PASSWORD - - MYSQL_DATABASE - - MYSQL_USER nextcloud-redis: image: redis:alpine @@ -96,21 +92,12 @@ services: container_name: nextcloud-app hostname: nextcloud-app restart: unless-stopped + env_file: .env depends_on: - nextcloud-db - nextcloud-redis volumes: - ./nextcloud-data/:/var/www/html - environment: - - MYSQL_HOST - - REDIS_HOST - - MAIL_DOMAIN - - MAIL_FROM_ADDRESS - - SMTP_SECURE - - SMTP_HOST - - SMTP_PORT - - SMTP_NAME - - SMTP_PASSWORD nextcloud-web: image: nginx:alpine @@ -163,7 +150,7 @@ SMTP_SECURE=ssl SMTP_HOST=smtp.sendgrid.net SMTP_PORT=465 SMTP_NAME=apikey -SMTP_PASSWORD=SG.asdasdasdasdasdasdsaasdasdsa +SMTP_PASSWORD= ``` `nginx.conf` @@ -215,10 +202,12 @@ nextcloud.{$MY_DOMAIN} { # First run -Nextcloud needs few minutes to start, then there is the initial configuration, -creating admin account and giving the database details as set in the `.env` file +Nextcloud needs few moments to start, then there is the initial configuration, +creating admin account.
+If not database variables were passed from the `.env` file in to nextcloud-app +then also database info would be required here. -![first-run-pic](https://i.imgur.com/EygHgKa.png) +![first-run-pic](https://i.imgur.com/lv1x9GF.png) The domain or IP you access nextcloud on this first run is added to `trusted_domains` in `config.php`.