-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
134 lines (124 loc) · 3.27 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
134 lines (124 loc) · 3.27 KB
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
services:
kafka:
image: confluentinc/cp-kafka:7.7.1 # kafka 3.7.1
ports:
- 9092:9092
- 29092:29092
environment:
KAFKA_NODE_ID: 1
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: 'CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT'
KAFKA_ADVERTISED_LISTENERS: 'PLAINTEXT://kafka:9092,PLAINTEXT_HOST://localhost:29092'
KAFKA_PROCESS_ROLES: 'broker,controller'
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_AUTO_LEADER_REBALANCE_ENABLE: "false"
KAFKA_GROUP_INITIAL_REBALANCE_DELAY_MS: 10
KAFKA_CONTROLLER_QUORUM_VOTERS: '1@kafka:29093'
KAFKA_LISTENERS: 'PLAINTEXT://kafka:9092,CONTROLLER://kafka:29093,PLAINTEXT_HOST://0.0.0.0:29092'
KAFKA_INTER_BROKER_LISTENER_NAME: 'PLAINTEXT'
KAFKA_CONTROLLER_LISTENER_NAMES: 'CONTROLLER'
CLUSTER_ID: 'MkU3OEVBNTcwNTJENDM2Qk'
healthcheck:
test: [ "CMD", "nc", "-z", "localhost", "29092" ]
interval: 5s
timeout: 10s
retries: 10
networks:
- eventsgateway
spark-notebook:
image: jupyter/all-spark-notebook
ports:
- '8888:8888'
volumes:
- ./spark-notebook/work:/home/jovyan/work
networks:
- eventsgateway
jaeger:
image: jaegertracing/all-in-one:latest
environment:
- COLLECTOR_OTLP_ENABLED=true
ports:
- "5775:5775/udp"
- "6831:6831/udp"
- "6832:6832/udp"
- "5778:5778"
- "16686:16686"
- "4317:4317"
networks:
- eventsgateway
eventsgateway-api:
image: eventsgateway-server-dev
ports:
- "5000:5000"
- "9091:9091"
depends_on:
kafka:
condition: service_healthy
healthcheck:
test: [ "CMD", "nc", "-z", "localhost", "5000" ]
interval: 5s
timeout: 10s
retries: 10
volumes:
- ./server:/app
command:
- sh
- -c
- 'go run main.go start -d'
networks:
- eventsgateway
eventsgateway-client:
image: eventsgateway-client-dev
ports:
- "9002:9002"
volumes:
- ./:/app
command:
- sh
- -c
- 'go run main.go load-test -d'
networks:
- eventsgateway
jupyter:
image: quay.io/jupyter/all-spark-notebook
ports:
- 8888:8888
volumes:
- ./spark-notebook:/home/jovyan/work
networks:
- eventsgateway
prometheus:
image: prom/prometheus
restart: always
volumes:
- ./testing/prometheus.yml:/etc/prometheus/prometheus.yml
- prometheus_data:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--web.console.libraries=/usr/share/prometheus/console_libraries'
- '--web.console.templates=/usr/share/prometheus/consoles'
ports:
- "9090:9090"
networks:
- eventsgateway
grafana:
image: grafana/grafana
restart: always
environment:
GF_INSTALL_PLUGINS: 'grafana-clock-panel,grafana-simple-json-datasource'
GF_SECURITY_ADMIN_USER: 'admin'
GF_SECURITY_ADMIN_PASSWORD: 'foobar'
GF_USERS_ALLOW_SIGN_UP: 'false'
volumes:
- grafana_data:/var/lib/grafana
ports:
- "3000:3000"
depends_on:
- prometheus
networks:
- eventsgateway
networks:
eventsgateway:
volumes:
prometheus_data: {}
grafana_data: {}