No description
|
||
---|---|---|
.dockerignore | ||
.drone.yml | ||
docker-compose.yml | ||
Dockerfile | ||
README.md |
Dokku setup
Create app
$ ssh dokku@danaos.infra.glenux.net apps:create automation
Configure N8N base
$ dokku config:set --no-restart N8N_HOST=automation.danaos.apps.glenux.net
$ dokku config:set --no-restart N8N_PORT=443
$ dokku config:set --no-restart N8N_PROTOCOL=https
$ dokku config:set --no-restart NODE_ENV=production
$ dokku config:set --no-restart WEBHOOK_URL=https://automation.danaos.apps.glenux.net/
$ dokku config:set --no-restart VUE_APP_URL_BASE_API=https://automation.danaos.apps.glenux.net/
$ dokku config:set --no-restart GENERIC_TIMEZONE=Europe/Paris
$ dokku config:set --no-restart EXECUTIONS_TIMEOUT=600
$ dokku config:set --no-restart EXECUTIONS_TIMEOUT_MAX=1200
Configure N8N auth & security
$ dokku config:set --no-restart N8N_BASIC_AUTH_ACTIVE="true"
$ dokku config:set --no-restart N8N_BASIC_AUTH_USER="admin"
$ dokku config:set --no-restart N8N_BASIC_AUTH_PASSWORD="foobar123"
$ dokku config:set --no-restart N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS="true"
$ dokku config:set --no-restart N8N_USER_MANAGEMENT_DISABLED=false
Configure N8N database
$ dokku config:set --no-restart DB_TYPE=postgresdb
$ dokku config:set --no-restart DB_POSTGRESDB_DATABASE=xxx
$ dokku config:set --no-restart DB_POSTGRESDB_HOST=xxxx
$ dokku config:set --no-restart DB_POSTGRESDB_PORT=xxxx
$ dokku config:set --no-restart DB_POSTGRESDB_USER=xxxx
$ dokku config:set --no-restart DB_POSTGRESDB_PASSWORD=xxxx
Configure N8N emails
$ dokku config:set --no-restart N8N_EMAIL_MODE=smtp
$ dokku config:set --no-restart N8N_SMTP_HOST=
$ dokku config:set --no-restart N8N_SMTP_PORT=
$ dokku config:set --no-restart N8N_SMTP_USER=
$ dokku config:set --no-restart N8N_SMTP_PASS=
$ dokku config:set --no-restart N8N_SMTP_SENDER
$ dokku config:set --no-restart N8N_SMTP_SSL=
Variables
# The port n8n should be made available on
N8N_PORT=5678
# This ones are currently only important for the webhook URL creation.
# So if "WEBHOOK_TUNNEL_URL" got set they do get ignored. It is however
# encouraged to set them correctly anyway in case they will become
# important in the future.
N8N_PROTOCOL=https
N8N_HOST=n8n.example.com
# The IP address n8n should listen on
N8N_LISTEN_ADDRESS=1.1.1.1
export VUE_APP_URL_BASE_API=https://n8n.example.com/