You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by Kafka Shil <ka...@gmail.com> on 2019/12/26 03:32:40 UTC
Re: How to change schema registry port
On Wed, Dec 25, 2019 at 5:51 PM Kafka Shil <ka...@gmail.com> wrote:
> Hi,
> I am using docker compose file to start schema-registry. I need to change
> default port to 8084 instead if 8081. I made the following changes in
> docker compose file.
>
> schema-registry:
> image: confluentinc/cp-schema-registry:5.3.1
> hostname: schema-registry
> container_name: schema-registry
> depends_on:
> - zookeeper
> - broker
> ports:
> - "8084:8084"
> environment:
> SCHEMA_REGISTRY_HOST_NAME: schema-registry
> SCHEMA_REGISTRY_KAFKASTORE_CONNECTION_URL: 'zookeeper:2181'
> SCHEMA_REGISTRY_LISTENERS: http://localhost:8084
>
> But If I execute "docker ps", I can see it still listens to 8081.
>
> 69511efd32d4 confluentinc/cp-schema-registry:5.3.1
> "/etc/confluent/dockā¦" 9 minutes ago Up 9 minutes
> 8081/tcp, 0.0.0.0:8084->8084/tcp schema-registry
>
> How do I change port to 8084?
>
> Thanks
>