mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-03-28 14:56:24 +01:00
Update README.md
more instruction
This commit is contained in:
parent
09b2c23cc1
commit
1b690c00cf
1 changed files with 8 additions and 0 deletions
|
@ -48,10 +48,18 @@ You can configure project details in `settings.js`. [See file for more details](
|
|||
|
||||
### Run in docker to reduce some of the risks
|
||||
|
||||
If you intent to `allow_insecure_coding` it might be a good idea to put the whole app into a docker container to reduce risks of damaging your system via a malicious code.
|
||||
|
||||
```
|
||||
docker run -i -t --rm -v $(pwd):/usr/src/app -w /usr/src/app node:latest npm start
|
||||
```
|
||||
|
||||
When running in docker, if you want the bot to join your local minecraft server, you have to use special host address to call your localhost from your docker container: `host.docker.internal`. Put this into your `settings.json`:
|
||||
|
||||
```
|
||||
"host": "host.docker.internal", // instead of "localhost", to join your local miecraft from inside the docker container
|
||||
```
|
||||
|
||||
### Online Servers
|
||||
To connect to online servers your bot will need an official Microsoft/Minecraft account. You can use your own personal one, but will need another account if you want to connect with it. Here are example settings for this:
|
||||
```
|
||||
|
|
Loading…
Add table
Reference in a new issue