-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #409 from solidnerd/rjh_remove_entrypoint_script
Remove .env file creation
- Loading branch information
Showing
4 changed files
with
50 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,16 @@ | |
|
||
## Changes | ||
|
||
Versions higher than 23.6.2 no longer use an in-container `.env` file for | ||
environment variable management. Instead, the preferred approach is to manage | ||
them directly with the container runtime (e.g. Docker's `-e`). This is to | ||
simplify troubleshooting if and when errors occur. The most important change is | ||
that `${APP_KEY}` is no longer provided for you, instead it is up to the | ||
operator to ensure this value is present. Versions prior to this supplied | ||
`${APP_KEY}` (with a default of `SomeRandomStringWith32Characters`. A full | ||
reference of available environment variables is available in the [Bookstack | ||
repository](https://github.com/BookStackApp/BookStack/blob/development/.env.example.complete) | ||
|
||
The version 23.6.0 is broken due to a bad `.env` configuration created by the | ||
entrypoint script. This is fixed in version 23.6.0-1. | ||
|
||
|
@@ -100,6 +110,14 @@ Networking changed in Docker v1.9, so you need to do one of the following steps. | |
|
||
`APP_URL=http://example.com` | ||
|
||
The following environment variables are required for Bookstack to start: | ||
- `APP_KEY` | ||
- `APP_URL` | ||
- `DB_HOST` (in the form `${hostname_or_ip_address}:${port}`) | ||
- `DB_DATABASE` | ||
- `DB_USERNAME` | ||
- `DB_PASSWORD` | ||
|
||
### Volumes | ||
|
||
To access your `.env` file and important bookstack folders on your host system | ||
|
@@ -115,7 +133,7 @@ your run command: | |
In case of a windows host machine the .env file has to be already created in the | ||
host directory otherwise a folder named .env will be created. | ||
|
||
After these steps you can visit [http://localhost:8080](http://localhost:8080) . | ||
After these steps you can visit [http://localhost:8080](http://localhost:8080). | ||
You can login with username `[email protected]` and password `password`. | ||
|
||
## Inspiration | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters