From a0ec9b5a7043a4a0b9850edbc915422e4316d08b Mon Sep 17 00:00:00 2001 From: Mylloon Date: Tue, 27 Jul 2021 23:39:49 +0200 Subject: [PATCH] Adding docker compose example --- README.md | 14 ++++++++++++++ docker-compose.yml | 11 +++++++++++ 2 files changed, 25 insertions(+) create mode 100644 docker-compose.yml 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