From 662eae8c3654ce1f6ce8c4422d26bb697c4e668c Mon Sep 17 00:00:00 2001 From: James Date: Tue, 27 Sep 2022 19:59:56 +0100 Subject: [PATCH] add instructions for docker compose up with or without postgres --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1e67dbb..85acef8 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # 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 @@ -36,7 +36,11 @@ cp .env.example .env 7. Bring up the containers! ```bash +# No PostgreSQL (if you have your own PostgreSQL DB) 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):