How do you disable the UI when running in docker?

I want to run docker instances that solely run the n8n backend. I do not want to expose the UI from these instances. How can I disable the UI?

Welcome to the community @vittyo!

There is currently sadly no way to disable the UI. It just however just get added and with the next version that gets released the environment variable N8N_DISABLE_UI=true can be set. It will then not serve any of the pages or images anymore but the internal REST-API will still be available.

2 Likes

Got released with [email protected]

1 Like

Excellent! Thank you for the quick turn around!

@jan Between [email protected] and 0.156.0, there seems to be a regression on N8N_PATH. I have it set to /workflow/. Just switching the docker image to 0.156.0 causes CSS and JS file to attempt to load from / rather than /workflow/:

Chrome console:

GET http://localhost:8000/css/app.12a0c523.css net::ERR_ABORTED 404 (Not Found)
workflow:1 GET http://localhost:8000/css/chunk-vendors.f712817b.css net::ERR_ABORTED 404 (Not Found)
workflow:1 GET http://localhost:8000/js/app.e03bef40.js net::ERR_ABORTED 404 (Not Found)
workflow:1 GET http://localhost:8000/js/chunk-vendors.cb123d86.js net::ERR_ABORTED 404 (Not Found)
workflow:1 GET http://localhost:8000/js/chunk-2d2073c1.f0370751.js net::ERR_ABORTED 404 (Not Found)
workflow:1 GET http://localhost:8000/js/chunk-2d22d3e6.388c0a4c.js net::ERR_ABORTED 404 (Not Found)
workflow:1 GET http://localhost:8000/js/chunk-4301fce8.d032a636.js net::ERR_ABORTED 404 (Not Found)
workflow:1 GET http://localhost:8000/js/chunk-b1e1f7c0.92d036f0.js net::ERR_ABORTED 404 (Not Found)
workflow:1 GET http://localhost:8000/js/app.e03bef40.js net::ERR_ABORTED 404 (Not Found)

If I switch back to 0.155.2, it works fine.