-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
122 lines (111 loc) · 3.37 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
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
# Uncomment to expose API
#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
restart: always
environment:
# Do **NOT** change these
- BROKER_PORT=${BROKER_PORT}
- REDIS_ADDR=${REDIS_ADDR}
# - NUM_SHARDS=2
- VIRTUAL_HOST=${LETSENCRYPT_HOST}
- VIRTUAL_PORT=${GALACTUS_EXTERNAL_PORT:-8123}
- LETSENCRYPT_HOST=${LETSENCRYPT_HOST}
- LETSENCRYPT_EMAIL=${LETSENCRYPT_EMAIL}
depends_on:
- redis
- nginx-proxy-letsencrypt
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"
nginx-proxy:
image: nginxproxy/nginx-proxy:${NGINXPROXY_TAG:?err}
labels:
com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy: "true"
restart: always
environment:
- HTTPS_PORT=${REVERSEPROXY_EXTERNAL_PORT:-443}
ports:
- 80:80
- ${REVERSEPROXY_EXTERNAL_PORT:-443}:${REVERSEPROXY_EXTERNAL_PORT:-443}
volumes:
- certs:/etc/nginx/certs:ro
- vhost:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
- /var/run/docker.sock:/tmp/docker.sock:ro
nginx-proxy-letsencrypt:
image: nginxproxy/acme-companion:${ACME_COMPANION_TAG:?err}
restart: always
environment:
- ACME_CA_URI=${ACME_CA_URI:?err}
depends_on:
- nginx-proxy
volumes:
- certs:/etc/nginx/certs:rw
- vhost:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
- /var/run/docker.sock:/var/run/docker.sock:ro
volumes:
bot-logs:
redis-data:
postgres-data:
certs:
vhost:
html: