-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
114 lines (104 loc) · 2.68 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
version: "3"
networks:
lubso:
driver: bridge
services:
stat_consumer:
networks:
- lubso
build:
# Shreyas:
# Context is build context given to dockerfile,
# it is relative to compose root
# for example, when copying it is the relative path the copy will use
context: ./stat_consumer
# Docker file is path to file, can go deeper / up if needed
dockerfile: Dockerfile
# Target is the build target to STOP building at (multi-stage)
target: dev
ports:
- 8001:9000
- 2345:2345
volumes:
- "./stat_consumer/:/usr/src/app"
environment:
KAFKA_BROKER_ADDRS: "kafka:9092"
PPROF_ENDPOINTS: "true"
stat_processor:
ports:
- 8018:3000
- 9229:9229
build:
context: "./stat_processor"
dockerfile: "./docker/Dockerfile.dev"
volumes:
- "./stat_processor:/usr/src/app"
kafka:
networks:
- lubso
image: "bitnami/kafka:latest"
ports:
- "9093:9093"
environment:
- ALLOW_PLAINTEXT_LISTENER=yes
- KAFKA_BROKER_ID=1
- KAFKA_CFG_LISTENERS=DOCKA://:9092,LOCALHOST://:9093
- KAFKA_CFG_ADVERTISED_LISTENERS=DOCKA://kafka:9092,LOCALHOST://127.0.0.1:9093
- KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP=DOCKA:PLAINTEXT,LOCALHOST:PLAINTEXT
- KAFKA_INTER_BROKER_LISTENER_NAME=LOCALHOST
- KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper:2181
depends_on:
- zookeeper
zookeeper:
networks:
- lubso
image: "bitnami/zookeeper:latest"
ports:
- "2181:2181"
environment:
- ALLOW_ANONYMOUS_LOGIN=yes
grafana:
image: grafana/grafana:5.1.0
volumes:
- "./grafana/provisioning:/etc/grafana/provisioning:ro"
environment:
GF_SECURITY_DISABLE_INITIAL_ADMIN_CREATION: "true"
GF_AUTH_ANONYMOUS_ENABLED: "true"
GF_AUTH_ANONYMOUS_ORG_ROLE: "Admin"
GF_AUTH_DISABLE_SIGNOUT_MENU: "true"
GF_AUTH_DISABLE_LOGIN_FORM: "true"
networks:
- lubso
ports:
- 8002:3000
prometheus:
image: prom/prometheus:v2.1.0
volumes:
- "./prometheus.yml/:/etc/prometheus/prometheus.yml"
- "prometheusVol:/prometheus"
command:
- "--config.file=/etc/prometheus/prometheus.yml"
ports:
- 8003:9090
networks:
- lubso
restart: always
cadvisor:
image: gcr.io/cadvisor/cadvisor:latest
container_name: cadvisor
ports:
- 8080:8080
volumes:
- "/:/rootfs:ro"
- "/var/run:/var/run:rw"
- "/sys:/sys:ro"
- "/var/run/docker.sock:/var/run/docker.sock"
depends_on:
- redis
redis:
image: redis:latest
container_name: redis
ports:
- 6379:6379
volumes:
prometheusVol: {}