Adding permanent storage for the DB while using docker
This commit is contained in:
parent
cf25c9c442
commit
3b46ce613a
2 changed files with 7 additions and 3 deletions
|
@ -39,7 +39,9 @@ docker run -d \
|
||||||
--ACCESS_TOKEN="yourAccessToken" \
|
--ACCESS_TOKEN="yourAccessToken" \
|
||||||
--PREFIX="yourPrefix" \
|
--PREFIX="yourPrefix" \
|
||||||
--CHANNEL="yourChannel(s)" \
|
--CHANNEL="yourChannel(s)" \
|
||||||
--DISCORD="yourDiscordLink"
|
--DISCORD="yourDiscordLink" \
|
||||||
|
-v /here/your/path/:/db
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
|
@ -1,11 +1,13 @@
|
||||||
version: "2.1"
|
version: "2.1"
|
||||||
services:
|
services:
|
||||||
twitchbot:
|
bot-tom:
|
||||||
image: registry.gitlab.com/confreriedukassoulait/bot-tom:latest
|
image: registry.gitlab.com/confreriedukassoulait/bot-tom:latest
|
||||||
container_name: TwitchBot
|
container_name: Bot-Tom
|
||||||
environment:
|
environment:
|
||||||
- ACCESS_TOKEN=yourAccessToken
|
- ACCESS_TOKEN=yourAccessToken
|
||||||
- PREFIX=yourPrefix
|
- PREFIX=yourPrefix
|
||||||
- CHANNEL=yourChannel(s)
|
- CHANNEL=yourChannel(s)
|
||||||
- DISCORD=yourDiscordLink
|
- DISCORD=yourDiscordLink
|
||||||
|
volumes:
|
||||||
|
- /here/your/path/:/db
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
Loading…
Reference in a new issue