4 Commits

4 changed files with 13 additions and 17 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.env

View File

@@ -1,8 +1,12 @@
# Domain for n8n
DOMAIN=n8n.example.com
# Your timezone # Your timezone
GENERIC_TIMEZONE=Europe/Warsaw GENERIC_TIMEZONE=Europe/Warsaw
# Directory where n8n will store files # Directory where n8n will store files
PATH_TO_FILES=/path/to/n8n/files PATH_TO_FILES=/path/to/n8n/files
# Domain for n8n
DOMAIN_NAME=mbuz.uk
SUBDOMAIN=automate
N8N_HOST=automate.mbuz.uk
N8N_PROTOCOL=https
# URL to webhook for the webhook triggers
WEBHOOK_URL=https://automate.mbuz.uk/
NODE_ENV=production

View File

@@ -5,13 +5,8 @@ services:
restart: unless-stopped restart: unless-stopped
ports: ports:
- 5678:5678 - 5678:5678
environment: env_file:
- N8N_HOST=${DOMAIN} - .env
- N8N_PORT=5678
- N8N_PROTOCOL=https
- NODE_ENV=production
- WEBHOOK_URL=https://${DOMAIN}/
- GENERIC_TIMEZONE=${GENERIC_TIMEZONE}
volumes: volumes:
- n8n_data:/home/node/.n8n - n8n_data:/home/node/.n8n
- ${PATH_TO_FILES}:/files - ${PATH_TO_FILES}:/files

View File

@@ -5,12 +5,8 @@ services:
restart: unless-stopped restart: unless-stopped
ports: ports:
- "3030:3000" - "3030:3000"
environment: env_file:
SEMAPHORE_DB_DIALECT: sqlite - .env
SEMAPHORE_ADMIN: ${ADMIN_USER}
SEMAPHORE_ADMIN_PASSWORD: ${ADMIN_PASS}
SEMAPHORE_ADMIN_NAME: ${ADMIN_NAME}
SEMAPHORE_ADMIN_EMAIL: ${ADMIN_EMAIL}
volumes: volumes:
- semaphore-data:/var/lib/semaphore - semaphore-data:/var/lib/semaphore
- semaphore-config:/etc/semaphore - semaphore-config:/etc/semaphore