-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose-kafka.yml
43 lines (40 loc) · 1.27 KB
/
docker-compose-kafka.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
version: '3.0'
services:
kafka:
image: spotify/kafka
container_name: kafka
ports:
- 2181:2181
- 9092:9092
healthcheck:
test: nc -z localhost 9092 || exit -1
interval: 10s
timeout: 5s
retries: 10
besu:
build:
context: .
dockerfile: ./integration-tests/Dockerfile.besu
environment:
- JAVA_OPTS="-Dbesu.plugins.dir=/opt/besu/plugins"
- BESU_LOGGING=DEBUG
- BESU_NETWORK=DEV
- BESU_MINER_ENABLED=true
- BESU_MINER_COINBASE=0x0000000000000000000000000000000000000000
container_name: besu
entrypoint: besu --plugin-kafka-enabled --plugin-kafka-url=kafka:9092 --plugin-kafka-stream=event.
depends_on:
- kafka
integration-tests:
build:
context : .
dockerfile: ./integration-tests/Dockerfile.tests
container_name: besu-integration-tests-module
environment:
- KAFKA_INTEGRATION_TEST_ENABLED=true
- TEST_BOOTSTRAP_SERVERS_CONFIG=kafka:9092
- TOPIC=event.block
entrypoint: ./gradlew :integration-tests:test
depends_on:
- kafka
- besu