Hello, whenever I try to deploy using docker and activate my workflows; I need to go to the UI enter my creds and deactivate then activate my workflows but I am doing that in my Dockerfile.
Also I get the message “Please restart n8n for changes to take effect if n8n is currently running.”; how can I do that?
Here is my Dockerfile:-
Use the Node.js base image
FROM node:18
Set environment variables for authentication (replace placeholders with your actual values)
I am not sure I fully understand what you are trying to do, I am also not sure why you don’t use the docker image we provide then map the volume and use the command to import / activate.
Thanks for the warm welcome. I am happy to be here
The current situation with this image is that my workflows are imported and activated, but I need to connect to the web UI, input my credentials, and toggle the imported workflows to be active.
I am trying to make a Dockerfile where I can do this without needing to connect to the web UI.
If there is a better way to do that, I will appreciate your help.
I am trying to make a POC that we can deploy on Docker, then I can try using Kubernetes, and when Kubernetes scales up, I don’t want to connect to the pod and have this manual step of setting up the credential. I want to have all the flow automated.
If you were scaling n8n they would all point to the same postgres database and you would just be adding workers. Because of the database sharing they woud all contain the workflows and credentials so this may not be needed.