Skip to content

Commit 9f5ec2e

Browse files
committed
build: switch kafka image to redpanda
1 parent 321e81a commit 9f5ec2e

File tree

2 files changed

+47
-13
lines changed

2 files changed

+47
-13
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ endif
4848
.PHONY: teardown
4949
teardown:
5050
-docker-compose down --remove-orphans
51+
-docker-compose rm -sfv
5152

5253
docker: update
5354
docker build --pull --build-arg VERSION=${VERSION} -t moov/achgateway:${VERSION} -f Dockerfile .

docker-compose.yml

Lines changed: 46 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -47,20 +47,53 @@ services:
4747
- "2181:2181"
4848

4949
kafka1:
50-
image: wurstmeister/kafka:2.13-2.6.0
51-
depends_on:
52-
- zookeeper
53-
ports:
54-
- "9092:9092"
55-
environment:
56-
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
57-
KAFKA_CREATE_TOPICS: test1:1:1
58-
PORT_COMMAND: "docker port $$(hostname) 9092/tcp | cut -d: -f2"
59-
HOSTNAME_COMMAND: "route -n | awk '/UG[ \t]/{print $$2}'"
50+
image: docker.redpanda.com/vectorized/redpanda:v22.3.21
51+
container_name: kafka1
52+
healthcheck:
53+
{
54+
test: curl -f localhost:9644/v1/status/ready,
55+
interval: 1s,
56+
start_period: 30s,
57+
}
6058
volumes:
61-
- /var/run/docker.sock:/var/run/docker.sock
62-
tmpfs: # Run this mysql in memory as its used for testing
63-
- /tmp/kafka-logs
59+
- redpanda-0:/var/lib/redpanda/data
60+
networks:
61+
- intranet
62+
ports:
63+
- 18081:18081
64+
- 18082:18082
65+
- 19092:19092
66+
- 19644:9644
67+
command:
68+
- redpanda
69+
- start
70+
- --kafka-addr internal://0.0.0.0:9092,external://0.0.0.0:19092
71+
- --advertise-kafka-addr internal://kafka1:9092,external://localhost:19092
72+
- --pandaproxy-addr internal://0.0.0.0:8082,external://0.0.0.0:18082
73+
- --advertise-pandaproxy-addr internal://kafka1:8082,external://localhost:18082
74+
- --schema-registry-addr internal://0.0.0.0:8081,external://0.0.0.0:18081
75+
- --rpc-addr kafka1:33145
76+
- --advertise-rpc-addr kafka1:33145
77+
- --smp 1
78+
- --memory 1G
79+
- --mode dev-container
80+
- --default-log-level=info
81+
82+
topics:
83+
image: docker.redpanda.com/vectorized/redpanda:v22.3.21
84+
depends_on:
85+
kafka1:
86+
condition: service_healthy
87+
networks:
88+
- intranet
89+
command:
90+
- topic
91+
- --brokers kafka1:9092
92+
- create
93+
- ach.outgoing-files
6494

6595
networks:
6696
intranet: {}
97+
98+
volumes:
99+
redpanda-0: null

0 commit comments

Comments
 (0)