Created
March 28, 2023 23:46
-
-
Save nenodias/13b9d9dd0d05f0d1009c4b59d6b542cf to your computer and use it in GitHub Desktop.
redpanda docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.7' | |
services: | |
redpanda: | |
image: docker.redpanda.com/vectorized/redpanda:v22.3.8 | |
container_name: emission-account.redpanda | |
network_mode: bridge | |
command: | |
- redpanda start | |
- --smp 1 | |
- --overprovisioned | |
- --node-id 0 | |
- --kafka-addr PLAINTEXT://0.0.0.0:29092,OUTSIDE://0.0.0.0:9092 | |
- --advertise-kafka-addr PLAINTEXT://172.17.0.1:29092,OUTSIDE://172.17.0.1:9092 | |
- --pandaproxy-addr 0.0.0.0:8082 | |
- --advertise-pandaproxy-addr 172.17.0.1:8082 | |
ports: | |
- 8081:8081 | |
- 8082:8082 | |
- 9092:9092 | |
- 9644:9644 | |
- 29092:29092 | |
console: | |
image: docker.redpanda.com/vectorized/console:v2.1.1 | |
container_name: emission-account.redpanda.console | |
network_mode: bridge | |
environment: | |
KAFKA_BROKERS: redpanda:9092 | |
KAFKA_SCHEMAREGISTRY_ENABLED: true | |
KAFKA_SCHEMAREGISTRY_URLS: http://redpanda:8081 | |
REDPANDA_ADMINAPI_ENABLED: true | |
REDPANDA_ADMINAPI_URLS: http://redpanda:9644 | |
CONNECT_ENABLED: true | |
CONNECT_CLUSTERS1_NAME: local-clusters | |
CONNECT_CLUSTERS1_URL: http://connect:8083 | |
ports: | |
- 18080:8080 | |
depends_on: | |
- redpanda | |
- connect | |
links: | |
- redpanda | |
- connect | |
# Owl Shop is an application that simulates an ecommerce shop that uses Kafka. | |
# It is part of this docker compose so that you have some sample data that you can | |
# browse with Console. | |
# owl-shop: | |
# image: quay.io/cloudhut/owl-shop:latest | |
# container_name: redpanda.shop | |
# environment: | |
# - SHOP_KAFKA_BROKERS=redpanda:29092 | |
# - SHOP_KAFKA_TOPICREPLICATIONFACTOR=1 | |
# - SHOP_TRAFFIC_INTERVAL_RATE=1 | |
# - SHOP_TRAFFIC_INTERVAL_DURATION=0.1s | |
# depends_on: | |
# - redpanda | |
connect: | |
image: docker.redpanda.com/vectorized/connectors:1.0.0-dev-dff1c57 | |
container_name: redpanda.connect | |
network_mode: bridge | |
hostname: connect | |
depends_on: | |
- redpanda | |
ports: | |
- "8083:8083" | |
environment: | |
CONNECT_CONFIGURATION: | | |
key.converter=org.apache.kafka.connect.converters.ByteArrayConverter | |
value.converter=org.apache.kafka.connect.converters.ByteArrayConverter | |
group.id=connectors-cluster | |
offset.storage.topic=_internal_connectors_offsets | |
config.storage.topic=_internal_connectors_configs | |
status.storage.topic=_internal_connectors_status | |
config.storage.replication.factor=-1 | |
offset.storage.replication.factor=-1 | |
status.storage.replication.factor=-1 | |
offset.flush.interval.ms=1000 | |
producer.linger.ms=50 | |
producer.batch.size=131072 | |
CONNECT_BOOTSTRAP_SERVERS: redpanda:29092 | |
CONNECT_GC_LOG_ENABLED: "false" | |
CONNECT_HEAP_OPTS: -Xms512M -Xmx512M | |
CONNECT_LOG_LEVEL: info | |
links: | |
- redpanda |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment