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

Reply via email to