Adding permanent storage for the DB while using docker

This commit is contained in:
Mylloon 2021-07-29 01:25:00 +02:00
parent cf25c9c442
commit 3b46ce613a
2 changed files with 7 additions and 3 deletions

View file

@ -39,7 +39,9 @@ docker run -d \
--ACCESS_TOKEN="yourAccessToken" \
--PREFIX="yourPrefix" \
--CHANNEL="yourChannel(s)" \
--DISCORD="yourDiscordLink"
--DISCORD="yourDiscordLink" \
-v /here/your/path/:/db
```
## Features

View file

@ -1,11 +1,13 @@
version: "2.1"
services:
twitchbot:
bot-tom:
image: registry.gitlab.com/confreriedukassoulait/bot-tom:latest
container_name: TwitchBot
container_name: Bot-Tom
environment:
- ACCESS_TOKEN=yourAccessToken
- PREFIX=yourPrefix
- CHANNEL=yourChannel(s)
- DISCORD=yourDiscordLink
volumes:
- /here/your/path/:/db
restart: unless-stopped