2022-06-24 23:04:05 +00:00
# Docker
2022-09-29 00:55:47 +00:00
You can run the bot as well as its dependencies as a series of Docker containers. However, the manual setup is still recommended if you want more control over the bot.
[To start, install Docker on your system via the instructions here. ](https://docs.docker.com/engine/install/#server )
2022-06-24 23:04:05 +00:00
Once you've installed Docker, you should clone the esmBot repo:
```sh
cd ~
git clone --recurse-submodules https://github.com/esmBot/esmBot
cd esmBot
```
2022-09-06 21:00:02 +00:00
Modify the `.env` file as described in step 7 of the manual setup. Make sure to change the `DB` option to this, however:
2022-06-24 23:04:05 +00:00
```
DB=postgresql://esmbot:verycoolpass100@postgres:5432/esmbot
```
2022-09-06 21:00:02 +00:00
You should then modify the `config/servers.json` file to change the IP addresses of the servers to match the Docker containers. Example:
2022-06-24 23:04:05 +00:00
```json
{
"lava": [
2022-09-09 19:55:03 +00:00
{ "name": "localhost", "url": "lavalink:2333", "auth": "youshallnotpass", "local": true }
2022-06-24 23:04:05 +00:00
],
"image": [
{ "server": "api", "auth": "verycoolpass100", "tls": false }
]
}
```
Finally, start the bot by running `docker-compose up -d` .