Add docker-compose.yml

This commit is contained in:
Glenn Y. Rolland 2022-09-11 21:01:34 +02:00
parent d2f142ee3d
commit 6403cba0ac

26
docker-compose.yml Normal file
View file

@ -0,0 +1,26 @@
---
version: "3"
services:
n8n:
image: n8nio/n8n
# restart: always
ports:
- "127.0.0.1:5678:5678"
environment:
- N8N_HOST=localhost
- N8N_PORT=5678
- N8N_PROTOCOL=http
- NODE_ENV=production
- WEBHOOK_URL=http://localhost:5678/
- GENERIC_TIMEZONE=${GENERIC_TIMEZONE}
# - WEBHOOK_URL=https://${SUBDOMAIN}.${DOMAIN_NAME}/
# - N8N_BASIC_AUTH_ACTIVE=true
# - N8N_BASIC_AUTH_USER
# - N8N_BASIC_AUTH_PASSWORD
# - N8N_HOST=${SUBDOMAIN}.${DOMAIN_NAME}
volumes:
- n8n_data:/home/node/.n8n
volumes:
n8n_data: