--- version: '3.8' services: zookeeper: image: confluentinc/cp-zookeeper:5.4.0 env_file: zookeeper.env hostname: test_zookeeper ports: - "52181:52181" volumes: - test_zkdata:/var/opt/zookeeper broker: image: confluentinc/cp-kafka:5.4.0 env_file: broker.env hostname: test_broker container_name: test_broker depends_on: - zookeeper ports: - "59092:59092" schema-registry: image: confluentinc/cp-schema-registry:5.4.0 env_file: schema-registry.env container_name: test_schema_registry depends_on: - zookeeper - broker ports: - "58081:8081" volumes: test_zkdata: