update README to reflect removal of Nginx component

This commit is contained in:
James 2022-02-27 15:39:16 +00:00
parent 2e2a5596f8
commit 2e22c1ae4d
1 changed files with 11 additions and 9 deletions

View File

@ -1,11 +1,11 @@
# Nextcloud (Docker Compose) # Nextcloud (Docker Compose)
Build a Nextcloud instance in Docker Compose complete with PostgreSQL, Redis and SSL Build a Nextcloud instance in Docker Compose complete with PostgreSQL and Redis
## Prerequisites ## Prerequisites
1. [Docker](https://docs.docker.com/engine/install/) 1. [Docker](https://docs.docker.com/engine/install/)
2. [Docker Compose](https://docs.docker.com/compose/install/) 2. [Docker Compose](https://docs.docker.com/compose/install/)
3. SSL key and cert 3. A reverse proxy on its own Docker network
## Setup ## Setup
@ -15,15 +15,17 @@ Build a Nextcloud instance in Docker Compose complete with PostgreSQL, Redis and
cp .env.example .env cp .env.example .env
``` ```
2. Replace the `SSL_CERT_PATH` and `SSL_KEY_PATH` variables in the newly created `.env` file to point to your SSL key and cert 2. Replace the `NEXTCLOUD_HOST` variable with your desired domain
3. Replace the `NGINX_HOST` variable with your desired domain 3. Replace `VOLUME_PATH` variable if you wish to change where volume data is stored
4. Replace `VOLUME_PATH` variable if you wish to change where volume data is stored 4. Modify other variables as needed
5. Modify other variables as needed 5. Create the following required secrets files (you should consider restricting access to these files):
6. Create the required secrets files (you should consider restricting access to these files): - `secrets/postgres_password.txt`
- `secrets/nextcloud_admin_user.txt`
- `secrets/nextcloud_admin_password.txt`
```bash ```bash
# Postgres # Postgres
@ -34,13 +36,13 @@ echo "admin" > secrets/nextcloud_admin_user.txt # Replace with
echo "SuperSecretPassword" > secrets/nextcloud_admin_password.txt # Replace with super secret password for admin Nextcloud user echo "SuperSecretPassword" > secrets/nextcloud_admin_password.txt # Replace with super secret password for admin Nextcloud user
``` ```
7. Bring up the containers! 6. Bring up the containers!
```bash ```bash
sudo docker-compose -p nextcloud up --build -d sudo docker-compose -p nextcloud up --build -d
``` ```
8. (Optional) To enable some file previews copy [previews.config.php](nextcloud/previews.config.php) into your Nextcloud's `config` directory (replace `$volume` with the path you have set in the `VOLUME_PATH` environment variable): 7. (Optional) To enable some file previews copy [previews.config.php](nextcloud/previews.config.php) into your Nextcloud's `config` directory (replace `$volume` with the path you have set in the `VOLUME_PATH` environment variable):
```bash ```bash
sudo cp nextcloud/previews.config.php $volume/var/www/html/config/ sudo cp nextcloud/previews.config.php $volume/var/www/html/config/