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

N8n r2 #761

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions .templates/n8n/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def main():
from blessed import Terminal

from deps.chars import specialChars, commonTopBorder, commonBottomBorder, commonEmptyLine, padText
from deps.consts import servicesDirectory, templatesDirectory
from deps.consts import volumesDirectory, servicesDirectory, templatesDirectory
from deps.common_functions import getExternalPorts, getInternalPorts, checkPortConflicts, enterPortNumberWithWhiptail

yaml = ruamel.yaml.YAML()
Expand All @@ -27,10 +27,11 @@ def main():
global issues # Returned issues dict
global haltOnErrors # Turn on to allow erroring
global hideHelpText # Showing and hiding the help controls text
global serviceService
global serviceService, serviceVolume

serviceService = servicesDirectory + currentServiceName
serviceTemplate = templatesDirectory + currentServiceName
serviceVolume = volumesDirectory + currentServiceName

try: # If not already set, then set it.
hideHelpText = hideHelpText
Expand Down Expand Up @@ -97,8 +98,9 @@ def preBuild():
# Setup service directory
if not os.path.exists(serviceService):
os.makedirs(serviceService, exist_ok=True)
os.makedirs(serviceService + '/etc_n8n', exist_ok=True)
os.makedirs(serviceService + '/var_lib_n8n', exist_ok=True)
# Create volume folder and set GID and UID to docker Node user can write.
os.makedirs(serviceVolume , exist_ok=True)
os.chown(serviceVolume, 1000, 1000)
return True

# #####################################
Expand Down
18 changes: 14 additions & 4 deletions .templates/n8n/service.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,27 @@

n8n:
container_name: "n8n"
restart: unless-stopped
ports:
- "5678:5678"
image: n8nio/n8n
- 5678:5678
image: docker.n8n.io/n8nio/n8n
stdin_open: true
volumes:
- ./volumes/n8n:/home/node/.n8n
environment:
- TZ=${TZ:-Etc/UTC}
# - PGID=1000
# - PUID=1000
# - USBDEVICES=/dev/ttyAMA0
# - PACKAGES=mc
# Optional DB and Timezone configs.

#- DB_TYPE=postgresdb
#- DB_POSTGRESDB_DATABASE=postdb
#- DB_POSTGRESDB_HOST=localhost
#- DB_POSTGRESDB_PORT=5432
#- DB_POSTGRESDB_USER=postuser
#- DB_POSTGRESDB_SCHEMA=<schema>
#- DB_POSTGRESDB_PASSWORD=<pwd>

# - DB_TYPE=mysqldb
# - DB_MYSQLDB_DATABASE=<MYSQLDB_DATABASE>
# - DB_MYSQLDB_HOST=<MYSQLDB_HOST>
Expand All @@ -26,3 +34,5 @@ n8n:
# - N8N_BASIC_AUTH_USER=<USER>
# - N8N_BASIC_AUTH_PASSWORD=<PASSWORD>

# Disable https requirement.
- N8N_SECURE_COOKIE=false
14 changes: 14 additions & 0 deletions docs/Containers/N8n.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# N8N, a NodeRed equivalent tool with both Open source support as well as purchased support following the fair-code license model
## References
* [Homepage](https://n8n.io/)
* [Docker](https://docker.n8n.io/n8nio/n8n)
* [Github](https://github.com/n8n-io/n8n)
* [Community](https://community.n8n.io/)

## Web interface
The web UI can be found on `"http://<your_ip></your_ip>":5678/`

## Introduction

The N8N tool is similr to the Nodered tool where you can create workflows, build scripts and connect to over 200 modules.