-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose.yml
45 lines (44 loc) · 1.4 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
version: "2.1"
services:
bot:
build: .
image: ekofiskctf/fiskebot
restart: always
environment:
- "DISCORD_TOKEN=${DISCORD_TOKEN}"
- "MONGODB_URI=${MONGODB_URI:-mongodb://mongo:27017}"
- "LOGGING_LEVEL=${LOGGING_LEVEL:-INFO}"
- "LOGGING_FORMAT=${LOGGING_FORMAT:-%(asctime)s:%(levelname)s:%(name)s: %(message)s}"
- "LOGGING_FILE=${LOGGING_FILE}"
- "LOGGING_DISCORD_LEVEL=${LOGGING_DISCORD_LEVEL:-ERROR}"
- "ARCHIVE_ACCESS_TO_ALL_USERS=${ARCHIVE_ACCESS_TO_ALL_USERS:-false}"
- "COMMAND_PREFIX=${COMMAND_PREFIX:-!}"
- "MAINTAINERS=${MAINTAINERS}"
- "GUILD_IDS=${GUILD_IDS}"
- "CATEGORY_WORKING=${CATEGORY_WORKING:-working}"
- "CATEGORY_DONE=${CATEGORY_DONE:-done}"
- "CATEGORY_ARCHIVE_PREFIX=${CATEGORY_ARCHIVE_PREFIX:-archive}"
- "CHANNEL_EXPORT=${CHANNEL_EXPORT:-export}"
- "CHANNEL_LOGGING_ID=${CHANNEL_LOGGING_ID}"
- "CHANNEL_NAME_DELIMITER=${CHANNEL_NAME_DELIMITER}"
- "CTFTIME_TEAM_ID=${CTFTIME_TEAM_ID}"
- "CTFTIME_TEAM_NAME=${CTFTIME_TEAM_NAME}"
volumes:
- ./bot:/home/bot
- ./backups:/home/bot/backups
depends_on:
- mongo
stop_signal: SIGKILL
mongo:
image: mongo:4.4.5
restart: always
ports:
- "127.0.0.1:27017:27017"
volumes:
- mdb:/data/db
- mdb_config:/data/configdb
volumes:
mdb:
external: true
mdb_config:
external: true