-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
62 lines (50 loc) · 1.07 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
redis:
image: redis:latest
zookeeper:
image: wurstmeister/zookeeper
ports:
- "2181"
kafka:
image: wurstmeister/kafka
ports:
- "9092"
links:
- zookeeper:zk
environment:
HOSTNAME_COMMAND: "route -n | awk '/UG[ \t]/{print $$2}'"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
postgres:
image: postgres:9.5.10
volumes:
- ./postgres-data:/var/lib/postgresql/data
environment:
PGDATA: "/var/lib/postgresql/data/pgdata"
POSTGRES_DB: "craigslist"
POSTGRES_PASSWORD: "postgres"
grafana:
image: kamon/grafana_graphite
ports:
- "8090:80"
crawler:
extends:
file: base-compose.yml
service: python
command: ./wait-for-it.sh kafka:9092 -- manage crawl
links:
- redis
- kafka
- grafana
dataview:
extends:
file: base-compose.yml
service: python
command: ./wait-pg-and-kafka.sh bash -c "manage dataview runserver 0.0.0.0:8080 & manage dataview dbimport"
ports:
- "8080:8080"
links:
- kafka
- postgres
- grafana
environment:
DJANGO_SETTINGS_MODULE: dataview.settings