Unable to use webhook in production mode. running n8n in docker
I have a webhook that works in test mode. however when i call the production URL, i get 404. Below is my docker-compose
---------
version: "3.8"
# create new encryption key
#rm -rf ./n8n_data/config
# N8N_USER_MANAGEMENT_DISABLED=true: Disables user management, removing the account creation screen.
# N8N_BASIC_AUTH_ACTIVE=true: Enables basic authentication to secure the UI.
# N8N_BASIC_AUTH_USER and N8N_BASIC_AUTH_PASSWORD: Set the username and password for logging into the UI.
# N8N_DISABLE_PRODUCTION_MAIN_PROCESS=true: Disables the production checks.
######## To run n8n in Docker ########
# docker compose down
# docker compose up
services:
n8n:
image: n8nio/n8n
container_name: n8n
restart: always
ports:
- "5678:5678"
environment:
- N8N_BASIC_AUTH_ACTIVE=true
- N8N_BASIC_AUTH_USER=admin
- N8N_BASIC_AUTH_PASSWORD=admin
- N8N_USER_MANAGEMENT_DISABLED=true
- N8N_DIAGNOSTICS_ENABLED=false
- N8N_ENCRYPTION_KEY=my_super_secret_key
- N8N_DISABLE_PRODUCTION_MAIN_PROCESS=true
- N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=false
####### Production Ready settings allowing multiple calls to webhooks ###
- N8N_DEPLOYMENT_TYPE=main
#- N8N_HOST=127.0.0.1 #your-domain-or-ip
#- N8N_PROTOCOL=http # or https
#- N8N_PORT=5678
volumes:
- n8n_data:/home/node/.n8n
volumes:
n8n_data: {} # Define the named volume here
Now a roadblock on the project.
Kindly advise.
2
16 comments
Martin P
1
Unable to use webhook in production mode. running n8n in docker
AI Automation Society
skool.com/ai-automation-society
A community built to master no-code AI automations. Join to learn, discuss, and build the systems that will shape the future of work.
Leaderboard (30-day)
Powered by