Skip to content

Instantly share code, notes, and snippets.

@hernan43
Last active January 21, 2021 16:40
Show Gist options
  • Save hernan43/d8a534b6638421a12ecce73ecf10a173 to your computer and use it in GitHub Desktop.
Save hernan43/d8a534b6638421a12ecce73ecf10a173 to your computer and use it in GitHub Desktop.
Sample n8n
version: "3"
services:
n8n:
image: n8nio/n8n:latest-rpi
ports:
- 5678:5678
environment:
- N8N_BASIC_AUTH_ACTIVE=true
- N8N_BASIC_AUTH_USER=something
- N8N_BASIC_AUTH_PASSWORD=something
- N8N_HOST=${DOMAIN_NAME}
- N8N_PORT=5678
- NODE_ENV=production
- WEBHOOK_TUNNEL_URL=https://${DOMAIN_NAME}
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ${DATA_FOLDER}/.n8n:/home/node/.n8n
command: /bin/sh -c "sleep 5; n8n start"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment