-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
80 lines (76 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
services:
http:
build: &default-build-spec
context: .
dockerfile: Dockerfile
target: http
volumes:
- type: bind
source: ${DRC_LOGS_PATH_HOST:?"Must define DRC_LOGS_PATH_HOST as the absolute path to logs on the host."}
target: /logs
- type: bind
target: /http
source: ${DRC_HTTP_PATH_HOST:?"Must define DRC_HTTP_PATH_HOST as the absolute path to http on the host."}
# this enables editing the templates at runtime
- type: bind
target: /app/drc/http/templates
source: ${DRC_HTTP_TEMPLATES_PATH_HOST:?"Must define DRC_HTTP_TEMPLATES_PATH_HOST as the absolute path to http templates source on the host."}
network_mode: "host"
restart: "on-failure"
logging:
options:
max-size: "512m"
max-file: "10"
irc:
build:
<<: *default-build-spec
target: irc
volumes:
- type: bind
source: ${DRC_LOGS_PATH_HOST:?"Must define DRC_LOGS_PATH_HOST as the absolute path to logs on the host."}
target: /logs
network_mode: "host"
restart: "on-failure"
logging:
options:
max-size: "512m"
max-file: "10"
discord:
build:
<<: *default-build-spec
target: discord
volumes:
- type: bind
source: ${DRC_LOGS_PATH_HOST:?"Must define DRC_LOGS_PATH_HOST as the absolute path to logs on the host."}
target: /logs
# this enables the hot-reloading of user commands via !reload
- type: bind
target: /app/drc/discord
source: ${DRC_DISCORD_SRC_HOST:?"Must define DRC_DISCORD_SRC_HOST as the absolute path to discord source on the host."}
# this enables gnuplot-enabled commands to write to the http directory
- type: bind
target: /http
source: ${DRC_HTTP_PATH_HOST:?"Must define DRC_HTTP_PATH_HOST as the absolute path to http on the host."}
network_mode: "host"
restart: "on-failure"
logging:
options:
max-size: "512m"
max-file: "10"
prometheus:
build:
<<: *default-build-spec
target: prometheus
volumes:
- type: bind
source: ${DRC_LOGS_PATH_HOST:?"Must define DRC_LOGS_PATH_HOST as the absolute path to logs on the host."}
target: /logs
network_mode: "host"
restart: "on-failure"
logging:
options:
max-size: "64m"
max-file: "10"
volumes:
logs:
external: true