-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
74 lines (67 loc) · 2.01 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
version: "3"
services:
automuteus:
# Either:
# - Use a prebuilt image
image: denverquane/amongusdiscord:${AUTOMUTEUS_TAG:?err}
# - Build image from local source
#build: .
# - Build image from github directly
#build: http://github.com/denverquane/automuteus.git
restart: always
ports:
# 5000 is the default service port
# Format is HostPort:ContainerPort
- ${SERVICE_PORT:-5000}:5000
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:-}
# Do **NOT** change this
- REDIS_ADDR=${AUTOMUTEUS_REDIS_ADDR}
- GALACTUS_ADDR=${GALACTUS_ADDR}
- POSTGRES_ADDR=${POSTGRES_ADDR}
depends_on:
- redis
- galactus
- postgres
volumes:
- "bot-logs:/app/logs"
galactus:
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}
image: automuteus/galactus:${GALACTUS_TAG:?err}
restart: always
environment:
# Do **NOT** change these
- DISCORD_BOT_TOKEN=${DISCORD_BOT_TOKEN:?err}
- BROKER_PORT=${BROKER_PORT}
- REDIS_ADDR=${GALACTUS_REDIS_ADDR}
- GALACTUS_PORT=${GALACTUS_PORT}
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: