Skip to content

Instantly share code, notes, and snippets.

@hunzo
Created August 4, 2025 01:52
Show Gist options
  • Save hunzo/cca79c6ecbfc1667a8436d756cef4125 to your computer and use it in GitHub Desktop.
Save hunzo/cca79c6ecbfc1667a8436d756cef4125 to your computer and use it in GitHub Desktop.
docker n8n with reverse proxy
services:
n8n:
image: n8nio/n8n
restart: unless-stopped
ports:
- 5678:5678
environment:
- N8N_BASIC_AUTH_ACTIVE=true
- N8N_BASIC_AUTH_USER=your_admin_user
- N8N_BASIC_AUTH_PASSWORD=your_admin_password
- N8N_HOST=your_domain.name
- N8N_PORT=5678
- N8N_PROTOCOL=https
- N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true
- N8N_RUNNERS_ENABLED=true
- WEBHOOK_URL=https://your_domain.name/
- TZ=Asia/Bangkok
- LINE_CHANNEL_ACCESS_TOKEN=exmaple_line_access_token
volumes:
- n8n_data:/home/node/.n8n
networks:
- n8n-net
redis:
image: redis
ports:
- 6379:6379
networks:
- n8n-net
volumes:
n8n_data:
networks:
n8n-net:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment