## docker-build: Build docker images for use with docker-compose
docker-build: eventbridge customer.yaml manifests/Dockerfile
docker build -f manifests/Dockerfile -t pavedroad-io/eventbridge .
touch docker-build
sonar.organization=pavedroad-io
# must be unique in a given SonarQube instance
sonar.projectKey=pavedroad-io_eventbridge
# this is the name and version displayed in the SonarQube UI. Was mandatory prior to SonarQube 6.1.
sonar.projectName=eventbridge
sonar.projectVersion=0.0.1
services:
eventbridge: eventbridge:
image: PavedRoad/eventbridge image: pavedroad-io/eventbridge
expose: expose:
- "8081" - 8081
ports: ports:
- 8081:8081 - 8081:8081
environment:
- PRLOG_AUTOINIT=true
- PRLOG_CFGTYPE=env
- PRLOG_ENABLEKAFKA=true
- PRLOG_FILEFORMAT=text
- PRLOG_FILELOCATION=logs/users.log
- PRKAFKA_BROKERS=kafka:9093
zookeeper: zookeeper:
image: wurstmeister/zookeeper image: wurstmeister/zookeeper
ports: expose:
- "2181:2181" - 2181
kafka: kafka:
image: wurstmeister/kafka image: wurstmeister/kafka
depends_on:
- zookeeper
ports: ports:
- "9092" - 9092:9092
expose:
- 9093
environment: environment:
KAFKA_ADVERTISED_HOST_NAME: "${DOCKER_IP}" KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_ZOOKEEPER_CONNECT: "${DOCKER_IP}:2181" KAFKA_LISTENERS: INSIDE://0.0.0.0:9093,OUTSIDE://0.0.0.0:9092
volumes: KAFKA_ADVERTISED_LISTENERS: INSIDE://kafka:9093,OUTSIDE://localhost:9092
- /var/run/docker.sock:/var/run/docker.sock KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INSIDE:PLAINTEXT,OUTSIDE:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: INSIDE
6 manifests/kafka.yaml
Viewed
@@ -10,7 +10,5 @@ services:
ports: ports:
- "9092" - "9092"
environment: environment:
KAFKA_ADVERTISED_HOST_NAME: "${DOCKER_IP}" KAFKA_ADVERTISED_HOST_NAME: kafka
KAFKA_ZOOKEEPER_CONNECT: "${DOCKER_IP}:2181" KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
volumes: