Hello,
i’m trying to Generate to run the docker as a service by running this command and geeting an error
/etc/systemd/system/n8n.service:9: Executable path specifies a directory: /home/n8n/
'<[Unit]
Description=n8n Workflow Automation (Docker)
After=docker.service
Requires=docker.service
[Service]
Restart=always
RestartSec=10
ExecStartPre=-/usr/bin/docker stop n8n
ExecStartPre=-/usr/bin/docker rm n8n
ExecStart=/usr/bin/ docker run -it --rm --name n8n -e N8N_SECURE_COOKIE=false -p 5678:5678 -v n8n_data:/home/node/.n8n docker.n8n.io/n8nio/n8n
[Install]
WantedBy=multi-user.target
/>’
the n8n folder is located in /home/n8n
i have installed the app by running docker install command from n8n documnation
anyone tried to resovle this issue or tried to run it as a service in systemd ?
thanks
n8n
December 10, 2024, 1:35pm
2
It looks like your topic is missing some important information. Could you provide the following if applicable.
n8n version:
Database (default: SQLite):
n8n EXECUTIONS_PROCESS setting (default: own, main):
Running n8n via (Docker, npm, n8n cloud, desktop app):
Operating system:
barn4k
December 10, 2024, 2:36pm
3
hello @yaniv-k8s
what is the use case?
simply enable docker as a service and that’s done
sudo systemctl enable docker.service
you only need to create a container once and then the docker will start it automatically
soo after reboot n8n contianer will start automatically?
barn4k
December 10, 2024, 3:09pm
5
if you run the container with default retry behavior and configured the docker to start on boot - yes.
Check the docs for more info
1 Like
system
Closed
December 20, 2024, 5:31am
6
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.