diff options
author | Marc Brückner <phoenix_exe@web.de> | 2017-09-14 15:14:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-14 15:14:29 +0200 |
commit | c6995f135eeeb4edcdacf3e7a76a134615610e4c (patch) | |
tree | 7ceec7b43809c690310417dee8bb156079b2ca5c | |
parent | 0d38b64c07cd5ecc1f12873299b92a438fd2daa5 (diff) |
Added readme entry for auto config
-rw-r--r-- | README.md | 29 |
1 files changed, 29 insertions, 0 deletions
@@ -89,6 +89,35 @@ or for docker-compose: $ docker-compose exec --user www-data app php occ ``` +## Auto configuration via envorinment variables +The nextcloud image supports auto configuration via environment variables. You can preconfigure everything that is asked on the install page on first run. To enable auto configuration, set your database connection via the following environment variables. ONLY use one database type! + +__SQLITE_DATABASE__: +- `SQLITE_DATABASE` Name of the database using sqlite + +___MYSQL/MariaDB__: +- `MYSQL_DATABASE` Name of the database using mysql / mariadb. +- `MYSQL_USER` Username for the database using mysql / mariadb. +- `MYSQL_PASSWORD` Password for the database user using mysql / mariadb. +- `MYSQL_HOST` Hostname of the database server using mysql / mariadb. + +__PostgreSQL__: +- `POSTGRES_DB` Name of the database using postgres. +- `POSTGRES_USER` Username for the database using postgres. +- `POSTGRES_PASSWORD` Password for the database user using postgres. +- `POSTGRES_HOST` Hostname of the database server using postgres. + +If you set any values, they will not be asked in the install page on first run. With a complete configuration by using all variables for your database type, you can additionally configure your Nextcloud instance by setting admin user and password (only works if you set both): + +- `NEXTCLOUD_ADMIN_USER` Name of the Nextcloud admin user. +- `NEXTCLOUD_ADMIN_PASSWORD` Password for the Nextcloud admin user. + +If you want you can set the data directory and table prefix, otherwise default values will be used. + +- `NEXTCLOUD_DATA_DIR` (default: _/var/www/html/data_) Configures the data directory where nextcloud stores all files from the users. +- `NEXTCLOUD_TABLE_PREFIX` (default: _""_) Optional prefix for the tables. Used to be `oc_` in the past + + # Running this image with docker-compose The easiest way to get a fully featured and functional setup is using a `docker-compose` file. There are too many different possibilities to setup your system, so here are only some examples what you have to look for. |