lensesio / fast-data-dev

Kafka Docker for development. Kafka, Zookeeper, Schema Registry, Kafka-Connect, , 20+ connectors
https://lenses.io
Apache License 2.0
2.02k stars 332 forks source link

Docker For Mac - How To Start lensesio/fast-data-dev:latest #163

Open dcs3spp opened 4 years ago

dcs3spp commented 4 years ago

Finally got this working on macOS Catalina. Not sure if documentation has been updated, but could not locate anywhere easily on gihutb page, so.....

Would it be possible to update the README documentation to save new users on macOS some effort?

docker-machine has been superceded by Docker Desktop

For any macOS users struggling to get started:

docker run --rm -p 2181:2181 -p 3030:3030 -p 8081-8083:8081-8083 -p 9581-9585:9581-9585 -p 9092:9092 -e ADV_HOST=127.0.0.1 lensesio/fast-data-dev:latest

or use the following docker-compose service:

kafka:
    image: lensesio/fast-data-dev:2.5.1-L0
    container_name: kafka
    networks:
      - yourNetworkName
    ports:
      - 2181:2181 # zookeeper
      - 3030:3030 # ui
      - 9092:9092 # broker
      - 8081:8081 # schema registry
      - 8082:8082 # rest proxy
      - 8083:8083 # kafka connect
    environment:
      - ADV_HOST=127.0.0.1
      - SAMPLEDATA=0
      - REST_PORT=8082
      - FORWARDLOGS=0
      - RUNTESTS=0
      - DISABLE_JMX=1
      - CONNECTORS=${CONNECTOR}
      - WEB_PORT=3030
      - DISABLE=hive-1.1

Finally, visit http://localhost:3030 in suitable browser.

NadavkOptimalQ commented 4 years ago

This worked great! Thank you very much!

dunglas commented 3 years ago

I confirm that this command works like a charm. Thanks, @dcs3spp!

sattsb commented 3 years ago

I hope this gets approved and merged

ransingh commented 3 years ago

Thanks @dcs3spp 👍 for getting this working. It should be added to MAcOS README section