-
Notifications
You must be signed in to change notification settings - Fork 41
/
docker-compose.yml
67 lines (62 loc) · 1.59 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
version: '3'
services:
logger:
build:
context: ./
dockerfile: ./logger/Dockerfile
container_name: slack-patron-logger
volumes:
- ./config.yml:/usr/local/slack-patron/config.yml
environment:
- SLACK_PATRON_SLACK_TOKEN
- SLACK_PATRON_DATABASE_URI=mongo:27017
- SLACK_PATRON_DATABASE_DATABASE=slack_logger
links:
- mongo
viewer:
build:
context: ./
dockerfile: ./viewer/Dockerfile
container_name: slack-patron-viewer
volumes:
- ./config.yml:/usr/local/slack-patron/config.yml
ports:
- "127.0.0.1:9292:9292"
environment:
- SLACK_PATRON_SLACK_TOKEN
- SLACK_PATRON_DATABASE_URI=mongo:27017
- SLACK_PATRON_DATABASE_DATABASE=slack_logger
- SLACK_PATRON_DEFAULT_CHANNEL=general
restart: always
connector:
build: connector
environment:
- MONSTACHE_DIRECT_READ_NS=slack_logger.messages
- MONSTACHE_ES_URLS=http://elasticsearch:9200
- MONSTACHE_MONGO_URL=mongodb://mongo:27017
depends_on:
- mongo
- elasticsearch
restart: always
elasticsearch:
build: elasticsearch
environment:
- ES_JAVA_OPTS=-Xms200m -Xmx640m -XX:G1PeriodicGCInterval=60k
- discovery.type=single-node
ports:
- "127.0.0.1:9200:9200"
volumes:
- esdata:/usr/share/elasticsearch/data
restart: always
mongo:
image: mongo:4.4.2
command: --profile=1 --slowms=100 --bind_ip_all --replSet rs0
volumes:
- mongodata:/data/db
ports:
- "127.0.0.1:27017:27017"
restart: always
volumes:
esdata:
mongodata:
oplog: