version: "3" services: kafka: image: hausgold/kafka:3.7 network_mode: bridge environment: MDNS_HOSTNAME: kafka.playground.local # See: http://bit.ly/2UDzgqI for Kafka downscaling KAFKA_HEAP_OPTS: -Xmx256M -Xms32M ulimits: # Due to systemd/pam RLIMIT_NOFILE settings (max int inside the # container), the Java process seams to allocate huge limits which result # in a +unable to allocate file descriptor table - out of memory+ error. # Lowering this value fixes the issue for now. # # See: http://bit.ly/2U62A80 # See: http://bit.ly/2T2Izit nofile: soft: 100000 hard: 100000 schema-registry: image: hausgold/schema-registry:7.6 network_mode: bridge environment: MDNS_HOSTNAME: schema-registry.playground.local SCHEMA_REGISTRY_KAFKASTORE_BOOTSTRAP_SERVERS: kafka.playground.local:9092 # Set the default Apache Avro schema compatibility # # See: http://bit.ly/2TcpoY1 # See: http://bit.ly/2Hfo4wj SCHEMA_REGISTRY_AVRO_COMPATIBILITY_LEVEL: full ulimits: # Due to systemd/pam RLIMIT_NOFILE settings (max int inside the # container), the Java process seams to allocate huge limits which result # in a +unable to allocate file descriptor table - out of memory+ error. # Lowering this value fixes the issue for now. # # See: http://bit.ly/2U62A80 # See: http://bit.ly/2T2Izit nofile: soft: 100000 hard: 100000 schema-registry-ui: image: hausgold/schema-registry-ui:0.9.5 network_mode: bridge environment: MDNS_HOSTNAME: schema-registry-ui.playground.local SCHEMAREGISTRY_URL: http://schema-registry.playground.local app: build: . network_mode: bridge working_dir: /app volumes: - .:/app:${DOCKER_MOUNT_MODE:-rw} environment: MDNS_HOSTNAME: app.playground.local