diff --git a/README.md b/README.md index ef78a50..4620007 100644 --- a/README.md +++ b/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" +``` diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..ac436ef --- /dev/null +++ b/docker-compose.yml @@ -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