You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,13 +41,15 @@ docker-compose -f ./docker-compose.postgres.yml up -d
41
41
42
42
## The `koel:init` command
43
43
44
+
This command is automatically ran when the container starts, but can be disabled if you want to do some manual adjustments first. As such it is often sufficient to provide the needed env variables to the container to setup koel.
45
+
44
46
For the first installation and every subsequent upgrade, you will need to run the `koel:init` command, which handles migrations and other setup tasks.
45
47
For instance, during the first run, this command will generate the `APP_KEY`, create the default admin user, and initialize the database. For subsequent runs, it will apply any new migrations and update the database schema as needed.
46
48
47
49
In order to run this command, you first need to `exec` into the container (replace `<container_name_for_koel>` with the name of your running Koel container):
Once inside the container, run the `koel:init` command:
@@ -142,7 +144,7 @@ Once you have generated an `APP_KEY` you can provide it as environment variables
142
144
143
145
```bash
144
146
# Run a container just to generate the key
145
-
docker run -it --rm phanan/koel bash
147
+
docker run -it --rm phanan/koel sh
146
148
# In the container, generate APP_KEY
147
149
$ php artisan key:generate --force
148
150
# Show the modified .env file
@@ -188,7 +190,7 @@ For all new songs, the search index will be automatically populated by `php arti
188
190
189
191
> [!IMPORTANT]
190
192
> This list is not exhaustive and may not be up-to-date. See [`.env.example`][koel-env-example] for a complete reference.
191
-
193
+
-`SKIP_INIT` : set a value to prevent the container from automatically running the init script on startup
192
194
-`DB_CONNECTION`: `mysql` OR `pgsql` OR `sqlsrv` OR `sqlite-persistent`. Corresponds to the type of database being used with Koel.
193
195
-`DB_HOST`: `database`. The name of the Docker container hosting the database. Koel needs to be on the same Docker network to find the database by its name.
194
196
-`DB_USERNAME`: `koel`. If you change it, also change it in the database container.
@@ -199,6 +201,7 @@ For all new songs, the search index will be automatically populated by `php arti
199
201
-`MEMORY_LIMIT`: The amount of memory in MB for the scanning process. Increase this value if `php artisan koel:scan` runs out of memory.
200
202
-`LASTFM_API_KEY` and `LASTFM_API_SECRET`: Enables Last.fm integration. See https://docs.koel.dev/3rd-party.html#last-fm
201
203
-`SPOTIFY_CLIENT_ID` and `SPOTIFY_CLIENT_SECRET`: Enables Spotify integration. See https://docs.koel.dev/3rd-party.html#spotify
204
+
-`OPTIMIZE_CONFIG` Preload and optimize the config. This disables your ability to do config edits while the container is running. If you enable this every config change will require a container restart to apply.
0 commit comments