Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker n8n instruction support #6

Open
ruifengma opened this issue Nov 24, 2023 · 1 comment
Open

Docker n8n instruction support #6

ruifengma opened this issue Nov 24, 2023 · 1 comment

Comments

@ruifengma
Copy link

Do you support to interact with n8n inside docker file, where can I find the doc related to it? Thanks in advance.

@BlitherBoom812
Copy link
Collaborator

BlitherBoom812 commented Dec 27, 2023

The execution code of the n8n (inside node npm) is here (only one line):

result = subprocess.run(["n8n", "execute", "--file", temp_file_path], stdout=subprocess.PIPE, stderr=subprocess.PIPE)

If you want to use n8n inside a docker, you can replace the command line with your docker container. the temp_file_path gives directly the temp json file of workflow path in your host file system. You may have to bind a volume or copy the temp json into the docker container.

Sorry for delayed response and thanks for your support for our project!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants