mirror of
https://github.com/Thumbscrew/nextcloud-docker-compose.git
synced 2025-04-12 18:23:43 +00:00
add instructions for docker compose up with or without postgres
This commit is contained in:
parent
7343f6ca7d
commit
662eae8c36
@ -1,5 +1,5 @@
|
|||||||
# Nextcloud (Docker Compose)
|
# Nextcloud (Docker Compose)
|
||||||
Build a Nextcloud instance in Docker Compose complete with PostgreSQL and Redis
|
Build a Nextcloud instance in Docker Compose complete with Redis and optional PostgreSQL
|
||||||
|
|
||||||
## Prerequisites
|
## Prerequisites
|
||||||
|
|
||||||
@ -36,7 +36,11 @@ cp .env.example .env
|
|||||||
7. Bring up the containers!
|
7. Bring up the containers!
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
# No PostgreSQL (if you have your own PostgreSQL DB)
|
||||||
sudo docker-compose -p nextcloud up --build -d
|
sudo docker-compose -p nextcloud up --build -d
|
||||||
|
|
||||||
|
# With Dockerized PostgreSQL
|
||||||
|
sudo docker-compose -f docker-compose.yaml -f docker-compose.db.yaml -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):
|
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):
|
||||||
|
Loading…
Reference in New Issue
Block a user