Skip to content

Commit 0d5e44a

Browse files
authored
Auto CurseForge, added docs to use env file (#2054)
1 parent cffe401 commit 0d5e44a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -631,6 +631,17 @@ To manage a CurseForge modpack automatically with upgrade support, pinned or lat
631631
> ```shell
632632
> docker run ... -e "CF_API_KEY=\$11\$22\$33aaaaaaaaaaaaaaaaaaaaaaaaaa"
633633
> ```
634+
> You can use a `.env` file, in the same directory as your `docker-compose.yaml`, and define your API Key there to remove the need to escape the `$` in your API Key. The `.env` file is [loaded automatically by docker compose](https://docs.docker.com/compose/environment-variables/set-environment-variables/#substitute-with-an-env-file).
635+
>
636+
> *.env*
637+
> ```
638+
> CF_API_KEY=$11$22$33aaaaaaaaaaaaaaaaaaaaaaaaaa
639+
> ```
640+
>
641+
> To use with `docker run` you need to specify the `.env` file
642+
> ```
643+
> docker run --env-file=.env itzg/minecraft-server
644+
> ```
634645
>
635646
> Be sure to use the appropriate [image tag for the Java version compatible with the modpack](#running-minecraft-server-on-different-java-version).
636647
>

0 commit comments

Comments
 (0)