Adding docker compose example
This commit is contained in:
parent
08ead1373a
commit
a0ec9b5a70
2 changed files with 25 additions and 0 deletions
14
README.md
14
README.md
|
@ -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
11
docker-compose.yml
Normal 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
|
Loading…
Reference in a new issue