mirror of
https://github.com/Thumbscrew/nextcloud-docker-compose.git
synced 2024-11-09 23:53:53 +00:00
update README with reverse proxy info
This commit is contained in:
parent
a431c1d43f
commit
b12f6d2261
18
README.md
18
README.md
@ -7,6 +7,10 @@ Build a Nextcloud instance in Docker Compose complete with PostgreSQL and Redis
|
|||||||
2. [Docker Compose](https://docs.docker.com/compose/install/)
|
2. [Docker Compose](https://docs.docker.com/compose/install/)
|
||||||
3. A reverse proxy on its own Docker network
|
3. A reverse proxy on its own Docker network
|
||||||
|
|
||||||
|
### <a id="ReverseProxy">Reverse Proxy Docker Network</a>
|
||||||
|
|
||||||
|
This Docker Compose file assumes you have a reverse proxy (like Nginx) in a Docker container on another Docker network. If you are not using a reverse proxy or do not wish to use the Docker network to connect the reverse proxy, you can set the `frontend` network's `external` property to be `false` in [docker-compose.yaml](docker-compose.yaml). You may also need to expose the HTTP port (80) on the `nextcloud` service.
|
||||||
|
|
||||||
## Setup
|
## Setup
|
||||||
|
|
||||||
1. Create a copy of `.env.example`:
|
1. Create a copy of `.env.example`:
|
||||||
@ -15,25 +19,27 @@ Build a Nextcloud instance in Docker Compose complete with PostgreSQL and Redis
|
|||||||
cp .env.example .env
|
cp .env.example .env
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Replace the `NEXTCLOUD_HOST` variable with your desired domain
|
2. Replace the `DOCKER_PROXY_NETWORK` variable with the Docker network where your reverse proxy sits (see [Reverse Proxy Docker Network](#ReverseProxy))
|
||||||
|
|
||||||
3. Replace `VOLUME_PATH` variable if you wish to change where volume data is stored
|
3. Replace the `NEXTCLOUD_HOST` variable with your desired domain
|
||||||
|
|
||||||
4. Modify other variables as needed
|
4. Replace `VOLUME_PATH` variable if you wish to change where volume data is stored
|
||||||
|
|
||||||
5. Create the following required secrets files (you should consider restricting access to these files):
|
5. Modify other variables as needed
|
||||||
|
|
||||||
|
6. Create the following required secrets files (you should consider restricting access to these files):
|
||||||
|
|
||||||
- `secrets/postgres_password.txt`
|
- `secrets/postgres_password.txt`
|
||||||
- `secrets/nextcloud_admin_user.txt`
|
- `secrets/nextcloud_admin_user.txt`
|
||||||
- `secrets/nextcloud_admin_password.txt`
|
- `secrets/nextcloud_admin_password.txt`
|
||||||
|
|
||||||
6. Bring up the containers!
|
7. Bring up the containers!
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo docker-compose -p nextcloud up --build -d
|
sudo docker-compose -p nextcloud up --build -d
|
||||||
```
|
```
|
||||||
|
|
||||||
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):
|
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):
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo cp nextcloud/previews.config.php $volume/var/www/html/config/
|
sudo cp nextcloud/previews.config.php $volume/var/www/html/config/
|
||||||
|
Loading…
Reference in New Issue
Block a user