-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose.yml
86 lines (78 loc) · 2.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
version: "3"
services:
automuteus:
# Either:
# - Use a prebuilt image
image: automuteus/automuteus:${AUTOMUTEUS_TAG:?err}
# - Use an old prebuilt image (prior to 6.16.1)
#image: denverquane/amongusdiscord:${AUTOMUTEUS_TAG:?err}
# - Build image from local source
# build: ../automuteus
# - Build image from github directly
#build: https://github.com/automuteus/automuteus.git
ports:
- ${API_PORT:-80}:${SERVICE_PORT}
restart: always
environment:
# These are required and will fail if not present
- DISCORD_BOT_TOKEN=${DISCORD_BOT_TOKEN:?err}
- HOST=${GALACTUS_HOST:?err}
- POSTGRES_USER=${POSTGRES_USER:?err}
- POSTGRES_PASS=${POSTGRES_PASS:?err}
# These Variables are optional
- WORKER_BOT_TOKENS=${WORKER_BOT_TOKENS:-}
- EMOJI_GUILD_ID=${EMOJI_GUILD_ID:-}
- CAPTURE_TIMEOUT=${CAPTURE_TIMEOUT:-}
- AUTOMUTEUS_LISTENING=${AUTOMUTEUS_LISTENING:-}
- BASE_MAP_URL=${BASE_MAP_URL:-}
- SLASH_COMMAND_GUILD_IDS=${SLASH_COMMAND_GUILD_IDS:-}
- API_SERVER_URL=${API_SERVER_URL:-}
- API_ADMIN_PASS=${API_ADMIN_PASS:-}
# Do **NOT** change these
- REDIS_ADDR=${REDIS_ADDR}
- POSTGRES_ADDR=${POSTGRES_ADDR}
# - SHARDS=0,1
# - NUM_SHARDS=2
stop_grace_period: ${STOP_GRACE_PERIOD:-2m}
depends_on:
- redis
- galactus
- postgres
volumes:
- "bot-logs:/app/logs"
galactus:
# Either:
# - Use a prebuilt image
image: automuteus/galactus:${GALACTUS_TAG:?err}
# - Build image from local source
# build: ../galactus
# - Build image from github directly
#build: https://github.com/automuteus/galactus.git
ports:
# See sample.env for details, but in general, match the GALACTUS_EXTERNAL_PORT w/ the GALACTUS_HOST's port
- ${GALACTUS_EXTERNAL_PORT:-8123}:${BROKER_PORT}
restart: always
environment:
# Do **NOT** change these
- BROKER_PORT=${BROKER_PORT}
- REDIS_ADDR=${REDIS_ADDR}
# - NUM_SHARDS=2
depends_on:
- redis
redis:
image: redis:alpine
restart: always
volumes:
- "redis-data:/data"
postgres:
image: postgres:12-alpine
restart: always
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASS}
volumes:
- "postgres-data:/var/lib/postgresql/data"
volumes:
bot-logs:
redis-data:
postgres-data: