Commit 2a78869
authored
[FEATURE] Docker: support for setting accounts and config option directly in compose.yaml, auto creation of files (#477)
* docker config and accounts support
#Docker quality of life updates: automatic account/config generation
## summary
- a valid accounts.json and config.json are now auto-generated on first run locally into ./config/ based on current example.files
- Accounts set via ACCOUNT_1_* / ACCOUNT_2_* vars in .env or compose.yaml
- Added env.example as credentials template
- All config options exposed as CONFIG_* env vars in compose.yaml; overrides apply on every startup and take precedence over config.json
- headless always forced true in Docker
- new config handling: warns in logs if a new image adds config keys missing from existing config.json
- If there is an updated, users can delete the local config.json, and a fresh one will be generated respecting the user's env overrides in the compose file.
## Files changed
- Dockerfile, scripts/docker/entrypoint.sh, compose.yaml, env.example (new)
## Todo
- Testing (builds and runs on my system with 2 accounts, etc.)
- Tidy up over-documentation in the compose (all config options are listed for dev testing, but likely only a few are necessary like clusters, search delay, and webhook
* Update entrypoint.sh
Fix incorrectly identifying an existing config as new, if an array value was changed.
* Tidy up compose and readme
Only commonly changed config values are included in the sample compose. All available config values added to the readme.
* add config update note
Adds a note how to easily update the config file if the example config is updated (i.e., new features added)
* Update compose.yaml
Tidied up the compose file:
- re-enabled latest image vs., local build
- for accounts, removed env_file block to simplify using a .env or adding credentials directly in the compose per user preference.
- removed extra comments1 parent 5861eed commit 2a78869
6 files changed
Lines changed: 529 additions & 104 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| 47 | + | |
46 | 48 | | |
47 | 49 | | |
48 | 50 | | |
| |||
79 | 81 | | |
80 | 82 | | |
81 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
82 | 95 | | |
83 | 96 | | |
84 | 97 | | |
85 | 98 | | |
86 | 99 | | |
87 | | - | |
| 100 | + | |
| 101 | + | |
88 | 102 | | |
89 | | - | |
| 103 | + | |
0 commit comments