From 27d78a48227b6ed2d50df75b169d192c511e9626 Mon Sep 17 00:00:00 2001 From: Ethan Paul Date: Wed, 10 Apr 2024 19:15:32 -0400 Subject: [PATCH] Document new custom nginx image --- README.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index bf11c03..81127b4 100644 --- a/README.md +++ b/README.md @@ -61,6 +61,12 @@ Simply run this command from the root of the cloned repo: this will take a while. +### Building nginx +This will embed an optimized configuration for serving Nextcloud files and PHP-FPM resources. Run this +command from the root of the cloned repo: + +`docker compose build nginx` + ### Installing Nextcloud Run `docker compose up -d`. If something doesn't work try debugging it yourself of open an issue with the php-fpm and nginx logs attached. @@ -82,9 +88,6 @@ Edit `/your/nextcloud/root/nextcloud/config/config.php` and add the following op ), ``` -### Editing nginx.conf -You may also have to replace `example.com` with your own domain or multiple domains in the nginx.conf file. - ### Enabling system cron (optional) Nextcloud must perform background tasks. The best way to do that is to use cron. However, on docker this is not easily doable. Here the host will perform the cronjobs required. @@ -165,4 +168,4 @@ Add this to your `/your/nextcloud/root/nextcloud/config/config.php`: ### Migrating from existing Nextcloud -To migrate you follow the steps described in the official [docs](https://docs.nextcloud.com/server/28/admin_manual/maintenance/migrating.html). The only difference here is importing the database backup into MariaDB running in the Docker Container. The way I did it is I exposed a port to MariaDB in the docker compose file and I ran something like `mysql -h [localhost:PORT HERE] -u nextcloud -pPASSWORD HERE nextcloud < database.bak` to import the backed up database. \ No newline at end of file +To migrate you follow the steps described in the official [docs](https://docs.nextcloud.com/server/28/admin_manual/maintenance/migrating.html). The only difference here is importing the database backup into MariaDB running in the Docker Container. The way I did it is I exposed a port to MariaDB in the docker compose file and I ran something like `mysql -h [localhost:PORT HERE] -u nextcloud -pPASSWORD HERE nextcloud < database.bak` to import the backed up database.