-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
82 lines (69 loc) · 1.61 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
# ./docker-compose.yml
version: '3.3'
networks:
grafana-net:
external:
name: grafana_network
remindme-net:
external: false
services:
bot:
build: .
depends_on:
- mongo
container_name: reminderbot-discord
volumes:
- ./Bot:/code
- ./legal:/code/legal
- ./logs:/code/logs
- /usr/share/zoneinfo:/usr/share/zoneinfo
stdin_open: true
tty: true
environment:
- MONGO_CONN
- MONGO_PORT
- MONGO_ROOT_USER
- MONGO_ROOT_PASS
- BOT_TOKEN
- BOT_ROOT_PREFIX
- ADMIN_GUILD
- PROMETHEUS_PORT
restart: always
networks:
- remindme-net
mongo:
image: mongo:4
container_name: reminderbot-mongo
restart: always
volumes:
- ./data/db:/data/db
ports:
- 27018:27017
expose:
- 27017
- 9091
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGO_ROOT_USER}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_ROOT_PASS}
networks:
- remindme-net
prometheus:
image: prom/prometheus
container_name: reminderbot-prometheus
restart: always
volumes:
- ./prometheus/:/etc/prometheus/
- ./prometheus_data:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--web.console.libraries=/etc/prometheus/console_libraries'
- '--web.console.templates=/etc/prometheus/consoles'
- '--storage.tsdb.retention.time=20y'
ports:
- 40002:9090
expose:
- 9090
networks:
- remindme-net
- grafana-net