docker-compose.yml 960 B

123456789101112131415161718192021222324252627282930313233343536
  1. services:
  2. redpanda:
  3. image: docker.redpanda.com/vectorized/redpanda:v22.2.2
  4. command:
  5. - redpanda start
  6. - --smp 1
  7. - --overprovisioned
  8. - --node-id 0
  9. - --kafka-addr PLAINTEXT://0.0.0.0:29092,OUTSIDE://0.0.0.0:9092
  10. - --advertise-kafka-addr PLAINTEXT://redpanda:29092,OUTSIDE://redpanda:9092
  11. - --pandaproxy-addr 0.0.0.0:8082
  12. - --advertise-pandaproxy-addr localhost:8082
  13. ports:
  14. - 8081:8081
  15. - 8082:8082
  16. - 9092:9092
  17. - 9644:9644
  18. - 29092:29092
  19. volumes:
  20. - ./kafka:/app
  21. etl:
  22. image: etl-kafka
  23. platform: wasi/wasm
  24. build:
  25. context: etl
  26. environment:
  27. DATABASE_URL: mysql://root:whalehello@db:3306/mysql
  28. KAFKA_URL: kafka://redpanda:9092/order
  29. RUST_BACKTRACE: full
  30. RUST_LOG: info
  31. restart: unless-stopped
  32. runtime: io.containerd.wasmedge.v1
  33. db:
  34. image: mariadb:10.9
  35. environment:
  36. MYSQL_ROOT_PASSWORD: whalehello