bitnami-containers/bitnami/schema-registry
..
7.6
7.7
7.8
7.9
8.0
8.1/debian-12
README.md
docker-compose.yml

README.md

Bitnami Secure Image for Confluent Schema Registry

What is Confluent Schema Registry?

Confluent Schema Registry provides a RESTful interface by adding a serving layer for your metadata on top of Kafka. It expands Kafka enabling support for Apache Avro, JSON, and Protobuf schemas.

Overview of Confluent Schema Registry Trademarks: This software listing is packaged by Bitnami. The respective trademarks mentioned in the offering are owned by the respective companies, and use of them does not imply any affiliation or endorsement.

TL;DR

docker run --name schema-registry bitnami/schema-registry:latest

Why use Bitnami Secure Images?

Those are hardened, minimal CVE images built and maintained by Bitnami. Bitnami Secure Images are based on the cloud-optimized, security-hardened enterprise OS Photon Linux. Why choose BSI images?

  • Hardened secure images of popular open source software with Near-Zero Vulnerabilities
  • Vulnerability Triage & Prioritization with VEX Statements, KEV and EPSS Scores
  • Compliance focus with FIPS, STIG, and air-gap options, including secure bill of materials (SBOM)
  • Software supply chain provenance attestation through in-toto
  • First class support for the internets favorite Helm charts

Each image comes with valuable security metadata. You can view the metadata in our public catalog here. Note: Some data is only available with commercial subscriptions to BSI.

Alt text Alt text

If you are looking for our previous generation of images based on Debian Linux, please see the Bitnami Legacy registry.

Learn more about the Bitnami tagging policy and the difference between rolling tags and immutable tags in our documentation page.

You can see the equivalence between the different tags by taking a look at the tags-info.yaml file present in the branch folder, i.e bitnami/ASSET/BRANCH/DISTRO/tags-info.yaml.

Subscribe to project updates by watching the bitnami/containers GitHub repo.

Get this image

The recommended way to get the Bitnami schema-registry Docker Image is to pull the prebuilt image from the Docker Hub Registry.

docker pull bitnami/schema-registry:latest

To use a specific version, you can pull a versioned tag. You can view the list of available versions in the Docker Hub Registry.

docker pull bitnami/schema-registry:[TAG]

If you wish, you can also build the image yourself by cloning the repository, changing to the directory containing the Dockerfile and executing the docker build command. Remember to replace the APP, VERSION and OPERATING-SYSTEM path placeholders in the example command below with the correct values.

git clone https://github.com/bitnami/containers.git
cd bitnami/APP/VERSION/OPERATING-SYSTEM
docker build -t bitnami/APP:latest .

Configuration

Environment variables

Customizable environment variables

Name Description Default Value
SCHEMA_REGISTRY_MOUNTED_CONF_DIR Directory for including custom configuration files (that override the default generated ones) ${SCHEMA_REGISTRY_VOLUME_DIR}/etc
SCHEMA_REGISTRY_KAFKA_BROKERS List of Kafka brokers to connect to. nil
SCHEMA_REGISTRY_ADVERTISED_HOSTNAME Advertised hostname in ZooKeeper. nil
SCHEMA_REGISTRY_KAFKA_KEYSTORE_PASSWORD Password to access the keystore. nil
SCHEMA_REGISTRY_KAFKA_KEY_PASSWORD Password to be able to used ssl secured kafka broker with SR nil
SCHEMA_REGISTRY_KAFKA_TRUSTSTORE_PASSWORD Password to access the truststore. nil
SCHEMA_REGISTRY_KAFKA_SASL_USER SASL user to authenticate with Kafka. nil
SCHEMA_REGISTRY_KAFKA_SASL_PASSWORD SASL password to authenticate with Kafka. nil
SCHEMA_REGISTRY_LISTENERS Comma-separated list of listeners that listen for API requests over either HTTP or HTTPS. nil
SCHEMA_REGISTRY_SSL_KEYSTORE_PASSWORD Password to access the SSL keystore. nil
SCHEMA_REGISTRY_SSL_KEY_PASSWORD Password to access the SSL key. nil
SCHEMA_REGISTRY_SSL_TRUSTSTORE_PASSWORD Password to access the SSL truststore. nil
SCHEMA_REGISTRY_SSL_ENDPOINT_IDENTIFICATION_ALGORITHM Endpoint identification algorithm to validate the server hostname using the server certificate. nil
SCHEMA_REGISTRY_CLIENT_AUTHENTICATION Client authentication configuration. Valid options: none, requested, over required. nil
SCHEMA_REGISTRY_AVRO_COMPATIBILY_LEVEL The Avro compatibility type. Valid options: none, backward, backward_transitive, forward, forward_transitive, full, or full_transitive nil
SCHEMA_REGISTRY_DEBUG Enable Schema Registry debug logs. Valid options: true or false nil

Read-only environment variables

Name Description Value
SCHEMA_REGISTRY_BASE_DIR Base path for SCHEMA REGISTRY files. ${BITNAMI_ROOT_DIR}/schema-registry
SCHEMA_REGISTRY_VOLUME_DIR SCHEMA REGISTRY directory for persisted files. ${BITNAMI_VOLUME_DIR}/schema-registry
SCHEMA_REGISTRY_BIN_DIR SCHEMA REGISTRY certificates directory. ${SCHEMA_REGISTRY_BASE_DIR}/bin
SCHEMA_REGISTRY_CERTS_DIR SCHEMA REGISTRY certificates directory. ${SCHEMA_REGISTRY_BASE_DIR}/certs
SCHEMA_REGISTRY_CONF_DIR SCHEMA REGISTRY configuration directory. ${SCHEMA_REGISTRY_BASE_DIR}/etc
SCHEMA_REGISTRY_DEFAULT_CONF_DIR SCHEMA REGISTRY configuration directory. ${SCHEMA_REGISTRY_BASE_DIR}/etc.default
SCHEMA_REGISTRY_LOGS_DIR SCHEMA REGISTRY logs directory. ${SCHEMA_REGISTRY_BASE_DIR}/logs
SCHEMA_REGISTRY_CONF_FILE Main SCHEMA REGISTRY configuration file. ${SCHEMA_REGISTRY_CONF_DIR}/schema-registry/schema-registry.properties
SCHEMA_REGISTRY_CONNECTION_TIMEOUT SCHEMA REGISTRY connection attempt timeout. 10
SCHEMA_REGISTRY_DAEMON_USER Users that will execute the SCHEMA REGISTRY Server process. schema-registry
SCHEMA_REGISTRY_DAEMON_GROUP Group that will execute the SCHEMA REGISTRY Server process. schema-registry
SCHEMA_REGISTRY_DEFAULT_LISTENERS Comma-separated list of listeners that listen for API requests over either HTTP or HTTPS. http://0.0.0.0:8081
SCHEMA_REGISTRY_DEFAULT_KAFKA_BROKERS List of Kafka brokers to connect to. PLAINTEXT://localhost:9092

When you start the Confluent Schema Registry image, you can adjust the configuration of the instance by passing one or more environment variables either on the docker-compose file or on the docker run command line. Please note that some variables are only considered when the container is started for the first time. If you want to add a new environment variable:

  • For docker-compose add the variable name and value under the application section in the docker-compose.yml file present in this repository:

    schema-registry:
      ...
      environment:
        - SCHEMA_REGISTRY_DEBUG=true
      ...
    
  • For manual execution add a --env option with each variable and value:

    $ docker run -d --name schema-registry -p 8081:8081 \
      --env SCHEMA_REGISTRY_DEBUG=true \
      --network schema-registry-tier \
      --volume /path/to/schema-registry-persistence:/bitnami \
      bitnami/schema-registry:latest
    

Kafka settings

Please check the configuration settings for the Kakfa service in the Kafka's README file.

Zookeeper settings

Please check the configuration settings for the Kakfa service in the Zookeeper's README file.

Security

The Schema Registry container can be setup to serve clients securely via TLS. To do so, specify the listener protocol as https in the SCHEMA_REGISTRY_LISTENERS environment variable (e.g. SCHEMA_REGISTRY_LISTENERS=http://0.0.0.0:8081,https://0.0.0.0:8082).

The keystore and trustore must be mounted in the /opt/bitnami/schema-registry/certs directory as ssl.keystore.jks and ssl.truststore.jks respectively. Currently, only JKS formats are supported. Note that the environment variables SCHEMA_REGISTRY_SSL_KEYSTORE_LOCATION or SCHEMA_REGISTRY_SSL_TRUSTSTORE_LOCATION will not override the expected location or file names. Please follow the instructions provided or you will get this error at startup: ERROR ==> In order to configure HTTPS access, you must mount your ssl.keystore.jks (and optionally the ssl.truststore.jks) to the /opt/bitnami/schema-registry/certs directory.

Here is a docker-compose.yml example that exposes a TLS listener on port 8082:

schema-registry:
  image: bitnami/schema-registry:latest
  ports:
    - 8081:8081
    - 8082:8082
  depends_on:
    - kafka
  environment:
    - SCHEMA_REGISTRY_KAFKA_BROKERS=PLAINTEXT://kafka:9092
    - SCHEMA_REGISTRY_HOST_NAME=schema-registry
    - SCHEMA_REGISTRY_LISTENERS=http://0.0.0.0:8081,https://0.0.0.0:8082
    - SCHEMA_REGISTRY_SSL_KEYSTORE_PASSWORD=keystore
    - SCHEMA_REGISTRY_SSL_TRUSTSTORE_PASSWORD=keystore
    - SCHEMA_REGISTRY_SSL_ENDPOINT_IDENTIFICATION_ALGORITHM=none
    - SCHEMA_REGISTRY_CLIENT_AUTHENTICATION=REQUESTED
  volumes:
    - ./keystore.jks:/opt/bitnami/schema-registry/certs/keystore.jks:ro
    - ./truststore.jks:/opt/bitnami/schema-registry/certs/truststore.jks:ro

FIPS configuration in Bitnami Secure Images

The Bitnami Confluent Schema Registry Docker image from the Bitnami Secure Images catalog includes extra features and settings to configure the container with FIPS capabilities. You can configure the next environment variables:

  • OPENSSL_FIPS: whether OpenSSL runs in FIPS mode or not. yes (default), no.

Using docker-compose.yaml

Please be aware this file has not undergone internal testing. Consequently, we advise its use exclusively for development or testing purposes. For production-ready deployments, we highly recommend utilizing its associated Bitnami Helm chart.

If you detect any issue in the docker-compose.yaml file, feel free to report it or contribute with a fix by following our Contributing Guidelines.

Contributing

We'd love for you to contribute to this container. You can request new features by creating an issue or submitting a pull request with your contribution.

Issues

If you encountered a problem running this container, you can file an issue. For us to provide better support, be sure to fill the issue template.

License

Copyright © 2025 Broadcom. The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.