fix docker run command

This commit is contained in:
Mylloon 2021-08-16 18:45:53 +02:00
parent b686b057cd
commit 2652787642

View file

@ -8,27 +8,28 @@ You have to replace `TOKEN_DISCORD`, `PREFIX`, `TOKEN_GENIUS`, `TOKEN_REDDIT_CLI
With a [docker-compose](https://gitlab.com/ConfrerieDuKassoulait/KassouBot/-/blob/main/docker-compose.yml) or in command line:
```
docker network create -d bridge default-kassoubot && \
docker run -d \
--name="Lavalink" \
-p 2333:2333 \
--network="default-kassoubot" \
--restart=unless-stopped \
registry.gitlab.com/confreriedukassoulait/lavalink:latest \
lavalink \
-p 2333:2333 \
--network="default" \
--restart=unless-stopped \
&& \
docker run -d \
--name="KassouBot" \
registry.gitlab.com/confreriedukassoulait/kassoubot \
--TOKEN_DISCORD="yourTokenDiscord" \
--TOKEN_GENIUS="yourTokenGenius" \
--TOKEN_REDDIT_CLIENT_ID="yourRedditClientID" \
--TOKEN_REDDIT_CLIENT_SECRET="yourRedditClientSecret" \
--TOKEN_REDDIT_USER_AGENT="yourRedditUserAgent" \
--TIMEZONE="yourTimezone" \
--PREFIX="yourPrefix" \
-e TOKEN_DISCORD="yourTokenDiscord" \
-e TOKEN_GENIUS="yourTokenGenius" \
-e TOKEN_REDDIT_CLIENT_ID="yourRedditClientID" \
-e TOKEN_REDDIT_CLIENT_SECRET="yourRedditClientSecret" \
-e TOKEN_REDDIT_USER_AGENT="yourRedditUserAgent" \
-e TIMEZONE="yourTimezone" \
-e PREFIX="yourPrefix" \
-v /here/your/path/:/opt/db \
--network="default" \
--network="default-kassoubot" \
--restart=unless-stopped
registry.gitlab.com/confreriedukassoulait/kassoubot \
```
You shouldn't change at least the service name of the Lavalink container because the bot is using his DNS name (and it's based on the service's name).