Adding docker compose example

This commit is contained in:
Mylloon 2021-07-27 23:39:49 +02:00
parent 08ead1373a
commit a0ec9b5a70
2 changed files with 25 additions and 0 deletions

View file

@ -25,3 +25,17 @@ Start Bot:
cd src
python3 main.py
```
## Use Docker
With a [docker-compose](https://gitlab.com/ConfrerieDuKassoulait/TwitchBot/-/blob/main/docker-compose.yml) or in command line:
```
docker run -d \
--name="TwitchBot" \
registry.gitlab.com/confreriedukassoulait/twitchbot:latest \
--ACCESS_TOKEN="yourAccessToken" \
--PREFIX="yourPrefix" \
--CHANNEL="yourChannel(s)" \
--DISCORD="yourDiscordLink"
```

11
docker-compose.yml Normal file
View file

@ -0,0 +1,11 @@
version: "2.1"
services:
twitchbot:
image: registry.gitlab.com/confreriedukassoulait/twitchbot:latest
container_name: TwitchBot
environment:
- ACCESS_TOKEN=yourAccessToken
- PREFIX=yourPrefix
- CHANNEL=yourChannel(s)
- DISCORD=yourDiscordLink
restart: unless-stopped