summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortetebueno <9064236+tetebueno@users.noreply.github.com>2020-12-09 13:44:19 -0300
committerGitHub <noreply@github.com>2020-12-09 16:44:19 +0000
commit380c1645ebf5640833680e8f6f25b4f9d44b9b21 (patch)
tree7bfe7e3bbc158ac59c7268ae1a83936a646d0fbe
parentf28ff5aef5c9d4889698cb3cf02c9e1eac53683a (diff)
Environment variables in docker-compose section (#1316)
* Environment variables in docker-compose section Docker-compose file in the example was missing database configuration environment variables of the app container, making the stack to use SQLite by default instead of the DB container. Didn't add `NEXTCLOUD_ADMIN_*` variables since this addresses the DB being configured with SQLite. This still works setting up admin credentials on first NC run. Signed-off-by: tetebueno <9064236+tetebueno@users.noreply.github.com> * Fixing FPM version too. Signed-off-by: tetebueno <9064236+tetebueno@users.noreply.github.com>
-rw-r--r--README.md14
1 files changed, 12 insertions, 2 deletions
diff --git a/README.md b/README.md
index b6df7180..42442e57 100644
--- a/README.md
+++ b/README.md
@@ -241,9 +241,14 @@ services:
- 8080:80
links:
- db
+ restart: always
volumes:
- nextcloud:/var/www/html
- restart: always
+ environment:
+ - MYSQL_PASSWORD=
+ - MYSQL_DATABASE=nextcloud
+ - MYSQL_USER=nextcloud
+ - MYSQL_HOST=db
```
@@ -280,9 +285,14 @@ services:
image: nextcloud:fpm
links:
- db
+ restart: always
volumes:
- nextcloud:/var/www/html
- restart: always
+ environment:
+ - MYSQL_PASSWORD=
+ - MYSQL_DATABASE=nextcloud
+ - MYSQL_USER=nextcloud
+ - MYSQL_HOST=db
web:
image: nginx