Обновить docker-compose.yml, README.md
This commit is contained in:
parent
893c3695ce
commit
cb143d76c5
36
README.md
Normal file
36
README.md
Normal 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
|
||||||
|
```
|
@ -1,9 +1,8 @@
|
|||||||
version: '3.8'
|
version: '3.8'
|
||||||
services:
|
services:
|
||||||
discord-bot:
|
discord-bot:
|
||||||
image: registry.thefoxon.ru/kamgames/pz-discord-bot:latest
|
image: registry.thefoxon.ru/kamgames/eco-discord-bot:latest
|
||||||
restart: always
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
DISCORD_TOKEN: ''
|
DISCORD_TOKEN: ''
|
||||||
PZ_HOST: 10.10.10.10
|
ECO_API_BASE: 'http://127.0.0.1:3001'
|
||||||
PZ_PORT: 16261
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user