Обновить docker-compose.yml, README.md

This commit is contained in:
The Foxon 2023-04-24 06:46:28 +00:00
parent 893c3695ce
commit cb143d76c5
2 changed files with 38 additions and 3 deletions

36
README.md Normal file
View File

@ -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
```

View File

@ -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'