diff --git a/README.md b/README.md new file mode 100644 index 0000000..94d38db --- /dev/null +++ b/README.md @@ -0,0 +1,36 @@ +To use the bot, you can use the docker-compose file and specify `DISCARD_TOKEN` and `ECO_API_BASE` as environment variables. + +```yml +version: '3.8' +services: + discord-bot: + image: registry.thefoxon.ru/kamgames/eco-discord-bot:latest + restart: always + environment: + DISCORD_TOKEN: '' + ECO_API_BASE: 'http://127.0.0.1:3001' +``` +```bash +docker-compose up -d +``` + +Or you can clone the repository and build the image already in place. + +```bash +gic clone https://git.thefoxon.ru/kamgames/eco-discord-bot.git eco-bot +``` + +```yml +version: '3.8' +services: + discord-bot: + build eco-bot + restart: always + environment: + DISCORD_TOKEN: '' + ECO_API_BASE: 'http://127.0.0.1:3001' +``` + +```bash +docker-compose up -d +``` diff --git a/docker-compose.yml b/docker-compose.yml index 1f9ae4d..444cc95 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,9 +1,8 @@ version: '3.8' services: discord-bot: - image: registry.thefoxon.ru/kamgames/pz-discord-bot:latest + image: registry.thefoxon.ru/kamgames/eco-discord-bot:latest restart: always environment: DISCORD_TOKEN: '' - PZ_HOST: 10.10.10.10 - PZ_PORT: 16261 + ECO_API_BASE: 'http://127.0.0.1:3001'