Sha256: fc095d107ce08b25d39953df03dade058969a0496276cfb533f786dc99b5a6c2

Contents?: true

Size: 1.72 KB

Versions: 19

Compression:

Stored size: 1.72 KB

Contents

services:
  ruby:
    image: ruby:${RUBY_VERSION:-3.2}
    environment:
      HISTFILE: /app/tmp/.bash_history
      BUNDLE_PATH: /usr/local/bundle
      BUNDLE_CONFIG: /app/.bundle/config
      DATABASE_URL: postgres://postgres:@postgres:5432
      KAFKAFILE: spec/internal/Kafkafile
    depends_on:
      kafka:
        condition: service_started
      postgres:
        condition: service_started
    command: bash
    working_dir: /app
    volumes:
      - .:/app:cached
      - bundler_data:/usr/local/bundle

  postgres:
    image: postgres:13
    environment:
      POSTGRES_HOST_AUTH_METHOD: trust
    ports:
      - 5432
    healthcheck:
      test: pg_isready -U postgres -h 127.0.0.1
      interval: 10s

  kafka:
    image: bitnami/kafka:2.7.0
    ports:
      - '9092:9092'
    environment:
      - KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181
      - ALLOW_PLAINTEXT_LISTENER=yes
      - KAFKA_CFG_AUTO_CREATE_TOPICS_ENABLE=true
      - KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP=CLIENT:PLAINTEXT,INTERNAL:PLAINTEXT
      - KAFKA_CFG_LISTENERS=CLIENT://:9092,INTERNAL://:9091
      - KAFKA_CFG_ADVERTISED_LISTENERS=CLIENT://kafka:9092,INTERNAL://kafka:9091
      - KAFKA_INTER_BROKER_LISTENER_NAME=INTERNAL
    depends_on:
      - zookeeper
    healthcheck:
      # we don't have `nc` installed in kafka image :(
      test:
        - CMD-SHELL
        - echo 'exit' | curl --silent -f telnet://0.0.0.0:9092
      interval: 15s
      timeout: 5s
      retries: 15

  zookeeper:
    image: bitnami/zookeeper:3.5
    ports:
      - '2181:2181'
    environment:
      - ALLOW_ANONYMOUS_LOGIN=yes
    healthcheck:
      test: ["CMD-SHELL", "echo ruok | nc localhost 2181"]
      interval: 2s
      timeout: 2s
      retries: 15

volumes:
  bundler_data:
  kafka:

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
sbmt-kafka_consumer-3.3.0 docker-compose.yml
sbmt-kafka_consumer-3.2.2 docker-compose.yml
sbmt-kafka_consumer-3.2.1 docker-compose.yml
sbmt-kafka_consumer-3.2.0 docker-compose.yml
sbmt-kafka_consumer-3.1.0 docker-compose.yml
sbmt-kafka_consumer-2.8.0 docker-compose.yml
sbmt-kafka_consumer-3.0.0 docker-compose.yml
sbmt-kafka_consumer-2.7.1 docker-compose.yml
sbmt-kafka_consumer-2.7.0 docker-compose.yml
sbmt-kafka_consumer-2.6.1 docker-compose.yml
sbmt-kafka_consumer-2.6.0 docker-compose.yml
sbmt-kafka_consumer-2.5.0 docker-compose.yml
sbmt-kafka_consumer-2.4.1 docker-compose.yml
sbmt-kafka_consumer-2.4.0 docker-compose.yml
sbmt-kafka_consumer-2.3.1 docker-compose.yml
sbmt-kafka_consumer-2.3.0 docker-compose.yml
sbmt-kafka_consumer-2.2.0 docker-compose.yml
sbmt-kafka_consumer-2.1.0 docker-compose.yml
sbmt-kafka_consumer-2.0.0 docker-compose.yml