mirror of
https://github.com/nextcloud/docker.git
synced 2025-05-03 23:40:54 +02:00
Added fetching autoconfig data from Docker secrets (#1516)
* Added fetching autoconfig data from Docker secrets Signed-off-by: Simon Tushev <tushev@users.noreply.github.com> * Docker secrets now have priority over ENV variables; improved README.md Signed-off-by: Simon Tushev <tushev@users.noreply.github.com>
This commit is contained in:
parent
f4dbcf523a
commit
2857b4b3f1
2 changed files with 19 additions and 1 deletions
|
@ -118,7 +118,9 @@ __PostgreSQL__:
|
|||
- `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):
|
||||
As an alternative to passing sensitive information via environment variables, `_FILE` may be appended to the previously listed environment variables, causing the initialization script to load the values for those variables from files present in the container. See [Docker secrets](#docker=secrets) section below.
|
||||
|
||||
If you set any group of values (i.e. all of `MYSQL_DATABASE`, `MYSQL_USER`, `MYSQL_PASSWORD`, `MYSQL_HOST`), 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.
|
||||
|
@ -376,6 +378,8 @@ secrets:
|
|||
|
||||
Currently, this is only supported for `NEXTCLOUD_ADMIN_PASSWORD`, `NEXTCLOUD_ADMIN_USER`, `MYSQL_DATABASE`, `MYSQL_PASSWORD`, `MYSQL_USER`, `POSTGRES_DB`, `POSTGRES_PASSWORD`, `POSTGRES_USER`, `REDIS_HOST_PASSWORD` and `SMTP_PASSWORD`.
|
||||
|
||||
If you set any group of values (i.e. all of `MYSQL_DATABASE_FILE`, `MYSQL_USER_FILE`, `MYSQL_PASSWORD_FILE`, `MYSQL_HOST`), the script will not use the corresponding group of environment variables (`MYSQL_DATABASE`, `MYSQL_USER`, `MYSQL_PASSWORD`, `MYSQL_HOST`)
|
||||
|
||||
# Make your Nextcloud available from the internet
|
||||
Until here, your Nextcloud is just available from your docker host. If you want your Nextcloud available from the internet adding SSL encryption is mandatory.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue