Skip to content

Commit

Permalink
Account for config.json in Docker instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
LBPHacker committed Oct 25, 2022
1 parent a0a5ff8 commit 49938b8
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,21 @@ these objects.

```sh
docker build -t tptmp .
docker run -p 1337:34403 -v /path/to/secret_config.lua:/tptmp/tptmp/server/secret_config.lua -it tptmp
docker run \
-p 1337:34403 \
-v /path/to/secret_config.lua:/tptmp/tptmp/server/secret_config.lua:ro \
-v /path/to/config/dir:/tptmp/config \
-it tptmp
```

With `/path/to/secret_config.lua` looking something like this for testing purposes:

```lua
return {
secure = false,
host = "localhost:1337",
secure = false,
host = "localhost:36779",
dynamic_config_main = "/tptmp/config/config.json",
dynamic_config_xchg = "/tptmp/config/config.json~",
}
```

Expand Down

0 comments on commit 49938b8

Please sign in to comment.