Skip to content

Instantly share code, notes, and snippets.

@parallel588
Created August 25, 2021 13:01
Show Gist options
  • Select an option

  • Save parallel588/172f219bb8efdfd1b61c76b6a43c1e9a to your computer and use it in GitHub Desktop.

Select an option

Save parallel588/172f219bb8efdfd1b61c76b6a43c1e9a to your computer and use it in GitHub Desktop.

Revisions

  1. parallel588 created this gist Aug 25, 2021.
    86 changes: 86 additions & 0 deletions docker-compose.dev.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,86 @@
    version: '3.8'

    services:
    zookeeper:
    image: confluentinc/cp-zookeeper:latest
    environment:
    ZOOKEEPER_CLIENT_PORT: 2181
    ZOOKEEPER_TICK_TIME: 2000
    ports:
    - 22181:2181

    kafka:
    image: confluentinc/cp-kafka:latest
    depends_on:
    - zookeeper
    ports:
    - 29092:29092
    volumes:
    - "kafka_data:/confluentinc"
    environment:
    KAFKA_BROKER_ID: 1
    KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
    KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092,PLAINTEXT_HOST://localhost:29092
    KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
    KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT
    KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
    KAFKA_ADVERTISED_HOST_NAME: 127.0.0.1

    mongo:
    image: mongo
    restart: always
    ports:
    - 27017:27017
    volumes:
    - ./docker/data/mongo:/data
    environment:
    ME_CONFIG_MONGODB_ADMINUSERNAME: root
    ME_CONFIG_MONGODB_ADMINPASSWORD: example

    clickhouse-server:
    image: yandex/clickhouse-server:20.10
    ports:
    - 8123:8123
    - 9000:9000
    - 9009:9009
    ulimits:
    nproc: 65535
    nofile:
    soft: 262144
    hard: 262144
    volumes:
    - ./docker/data/clickhouse:/var/lib/clickhouse

    clickhouse-client:
    image: yandex/clickhouse-client:20.10
    command: [ '--host', 'clickhouse-server' ]

    elasticsearch:
    image: elasticsearch:7.12.1
    environment:
    - discovery.type=single-node
    ports:
    - 9200:9200
    - 9300:9300

    redis:
    image: redis:6.0.9-alpine
    command: redis-server --appendonly yes
    volumes:
    - ./docker/data/redis:/data
    ports:
    - 6379:6379

    volumes:
    clickhouse-data:
    driver: local
    elasticsearch-data:
    driver: local
    redis-data:
    driver: local
    mongo-data:
    driver: local
    zookeeper_data:
    driver: local
    kafka_data:
    driver: local