Personalized n8n image

Hi everyone,
I’m looking for some guidance on a couple of Docker issues I’ve been struggling with.
Yesterday, I asked about how to bake credentials into a Docker image so they are pre-loaded. I have already tried using an entrypoint script (.sh), passing a .env file, and defining them in docker-compose.yml, but none of these methods seem to be working for my specific setup. Does anyone have a reliable tutorial or “best practice” guide for handling this?
Secondary Question:
I am planning to deploy this container to a headless Linux server (no GUI). Is it possible to deploy it smoothly in that environment? Currently, every time I start my container, it stops at a login screen/prompt. How can I bypass this or automate the login so the application starts immediately upon deployment?
Thanks in advance for the help!

What is the error message (if any)?

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

This may be a good start

I am pretty sure you can’t bake the credentials in the way you expected due to how n8n handles credentials.
Perhaps the easiest way to fix this is with a script that passes the credentials through the n8n api.