-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
71 lines (66 loc) · 1.49 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
version: '3.1'
services:
postgres:
image: postgres
restart: always
environment:
POSTGRES_PASSWORD: "surveyor"
POSTGRES_USER: "surveyor"
POSTGRES_DB: "surveyor"
ports:
- "5433:5432"
manager:
image: com.surveyor.manager
ports:
- "8080:8080"
depends_on:
- postgres
zookeeper:
image: wurstmeister/zookeeper
ports:
- "2181:2181"
kafka:
image: wurstmeister/kafka
hostname: kafka
ports:
- "9092:9092"
environment:
KAFKA_ADVERTISED_HOST_NAME: "kafka"
KAFKA_ADVERTISED_PORT: "9092"
KAFKA_ZOOKEEPER_CONNECT: "zookeeper:2181"
KAFKA_AUTO_CREATE_TOPICS_ENABLE: "true"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
depends_on:
- zookeeper
requests:
image: com.surveyor.requests
ports:
- "8083:8080"
depends_on:
- postgres
- kafka
mongodb:
image: mongo:latest
environment:
MONGO_DATA_DIR: "/data/db"
MONGO_LOG_DIR: "/dev/null"
MONGO_INITDB_ROOT_USERNAME: "surveyor"
MONGO_INITDB_ROOT_PASSWORD: "surveyor"
MONGO_INITDB_DATABASE: "surveyor"
volumes:
- ./data/db:/data/db
ports:
- "27017:27017"
command: mongod --smallfiles
collector:
image: com.surveyor.collector
depends_on:
- mongodb
- kafka
statistics:
image: com.surveyor.statistics
ports:
- "8082:8080"
depends_on:
- mongodb