diff --git a/examples/README.md b/examples/README.md index 6b5c0b4457..1c7ee1a388 100644 --- a/examples/README.md +++ b/examples/README.md @@ -16,7 +16,7 @@ The client implements all Patron clients for the components used by the service. First we need to start the dependencies of the example by running: ```bash -docker-compose -f examples/docker-compose.yml up -d +docker-compose -f docker-compose.yml up -d ``` Next we run the service: diff --git a/examples/docker-compose.yml b/examples/docker-compose.yml deleted file mode 100644 index cd6c437cb0..0000000000 --- a/examples/docker-compose.yml +++ /dev/null @@ -1,56 +0,0 @@ -version: '2.1' - -services: - rabbitmq: - image: docker.io/bitnami/rabbitmq:latest - ports: - - '4369:4369' - - '5551:5551' - - '5552:5552' - - '5672:5672' - - '25672:25672' - - '15672:15672' - environment: - - RABBITMQ_USERNAME=bitnami - - RABBITMQ_PASSWORD=bitnami - - RABBITMQ_SECURE_PASSWORD=yes - - RABBITMQ_MANAGEMENT_ALLOW_WEB_ACCESS=yes - volumes: - - 'rabbitmq_data:/bitnami/rabbitmq/mnesia' - zookeeper: - image: 'bitnami/zookeeper:latest' - ports: - - '2181:2181' - environment: - - ALLOW_ANONYMOUS_LOGIN=yes - kafka: - image: 'bitnami/kafka:2' - ports: - - '9092:9092' - - '9093:9093' - environment: - - KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper:2181 - - ALLOW_PLAINTEXT_LISTENER=yes - - KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP=CLIENT:PLAINTEXT,EXTERNAL:PLAINTEXT - - KAFKA_CFG_LISTENERS=CLIENT://:9092,EXTERNAL://:9093 - - KAFKA_CFG_ADVERTISED_LISTENERS=CLIENT://kafka:9092,EXTERNAL://localhost:9093 - - KAFKA_CFG_INTER_BROKER_LISTENER_NAME=CLIENT - depends_on: - - zookeeper - localstack: - image: localstack/localstack:latest - ports: - - "127.0.0.1:4566:4566" # LocalStack Gateway - - "127.0.0.1:4510-4559:4510-4559" # external services port range - environment: - - DEBUG=${DEBUG-} - - DOCKER_HOST=unix:///var/run/docker.sock - - AWS_ACCESS_KEY_ID=test - - AWS_SECRET_ACCESS_KEY=test - - AWS_DEFAULT_REGION=eu-west-1 - volumes: - - "${TMPDIR:-/tmp}/localstack:/var/lib/localstack" - - "/var/run/docker.sock:/var/run/docker.sock" -volumes: - rabbitmq_data: - driver: local diff --git a/examples/examples.go b/examples/examples.go index a09de3c163..7d7e215771 100644 --- a/examples/examples.go +++ b/examples/examples.go @@ -31,7 +31,7 @@ const ( KafkaTopic = "patron-topic" KafkaGroup = "patron-group" - KafkaBroker = "localhost:9093" + KafkaBroker = "localhost:9092" ) func CreateSQSAPI() (*sqs.Client, error) {