This commit is contained in:
Eliezer Croitoru 2024-12-24 22:52:13 +02:00
commit c3d18c7cf0
3 changed files with 38 additions and 0 deletions

18
.env Normal file
View File

@ -0,0 +1,18 @@
# Replace <directory-path> with the path where you created folders earlier
DATA_FOLDER=/opt/src/n8n-docker
# The top level domain to serve from, this should be the same as the subdomain you created above
DOMAIN_NAME=example.com
# The subdomain to serve from
SUBDOMAIN=n8n
# DOMAIN_NAME and SUBDOMAIN combined decide where n8n will be reachable from
# above example would result in: https://n8n.example.com
# Optional timezone to set which gets used by Cron-Node by default
# If not set New York time will be used
GENERIC_TIMEZONE=Asia/Jerusalem
# The email address to use for the SSL certificate creation
SSL_EMAIL=example@example.com

20
docker-compose.yml Normal file
View File

@ -0,0 +1,20 @@
services:
n8n:
image: docker.n8n.io/n8nio/n8n
restart: always
ports:
- 5678:5678
environment:
- N8N_HOST=192.168.220.17
- N8N_PORT=5678
- N8N_PROTOCOL=https
- NODE_ENV=production
- GENERIC_TIMEZONE=Asia/Jerusalem
- N8N_SECURE_COOKIE=false
volumes:
- n8n_data:/home/node/.n8n
- /opt/src/n8n-docker/local_files:/files
volumes:
n8n_data:
external: true

0
local_files/.gitkeep Normal file
View File