Deployment
Build the image
Section titled “Build the image”cd frontendnpm installnpm run buildcd ../backendmvn -DskipTests packagecd ..docker build -t super-kafka-manager:local .Run a container
Section titled “Run a container”docker run --rm -p 4040:4040 \ -v "$HOME/.super-kafka-manager:/data" \ super-kafka-manager:localThe API and frontend are available at http://localhost:4040/.
Compose test environment
Section titled “Compose test environment”docker compose up --buildCompose starts the application and a development Kafka broker. Containers use kafka:29092; host tools use localhost:9092.
Reverse-proxy prefix
Section titled “Reverse-proxy prefix”The same image can run below /platform/tools/kafka/:
location = /platform/tools/kafka { return 301 /platform/tools/kafka/; }location /platform/tools/kafka/ { proxy_pass http://super-kafka-manager:4040/; proxy_set_header Host $host; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_cookie_path / /platform/tools/kafka/; proxy_buffering off; proxy_read_timeout 1h;}Keep the trailing slash on proxy_pass; do not set server.servlet.context-path or rebuild with a fixed Vite base.