Describe the problem/error/question
I’m setting up n8n with docker on ubuntu. I set up reverse proxy with Nginx + CertBot, they work fine and I can access the n8n editor in my url . ![]()
However WEBHOOK test and production urls don’t change even after i set the apparently correct (?) env variables.
They remain just this:
http://localhost:5678/webhook-test/1345b094-ab1b-418a-986c-fdb6f0bbd53a My .env vars are pasted below.
Porteiner – Container details – Edit – Advanced container settings – Env
.env variables
#db env vars up here
GENERIC_TIMEZONE=America/Fortaleza
N8N_EDITOR_BASE_URL=https://n8n.chat.adm.br/
N8N_HOST=n8n.chat.adm.br
N8N_PORT=5678
N8N_PROTOCOL=https
NODE_ENV=production
WEBHOOK_URL=https://n8n.chat.adm.br/
WEBHOOK_TUNNEL_URL=https://n8n.chat.adm.br/
DOMAIN_NAME=chat.adm.br
SUBDOMAIN=n8n
# path to the HTTPS certificate and key generated by certbot
N8N_SSL_CERT_FILE=/etc/letsencrypt/live/api.chat.adm.br/fullchain.pem
N8N_SSL_KEY_FILE=/etc/letsencrypt/live/api.chat.adm.br/privkey.pem
docker-compose.yaml
version: '3.8'
volumes:
db_storage:
n8n_storage:
services:
postgres:
image: postgres:16
restart: always
environment:
- POSTGRES_USER
- POSTGRES_PASSWORD
- POSTGRES_DB
- POSTGRES_NON_ROOT_USER
- POSTGRES_NON_ROOT_PASSWORD
volumes:
- db_storage:/var/lib/postgresql/data
- ./init-data.sh:/docker-entrypoint-initdb.d/init-data.sh
healthcheck:
test: ['CMD-SHELL', 'pg_isready -h localhost -U ${POSTGRES_USER} -d ${POSTGRES_DB}']
interval: 5s
timeout: 5s
retries: 10
n8n:
image: docker.n8n.io/n8nio/n8n
restart: always
environment:
- DB_TYPE=postgresdb
- DB_POSTGRESDB_HOST=postgres
- DB_POSTGRESDB_PORT=5432
- DB_POSTGRESDB_DATABASE=${POSTGRES_DB}
- DB_POSTGRESDB_USER=${POSTGRES_NON_ROOT_USER}
- DB_POSTGRESDB_PASSWORD=${POSTGRES_NON_ROOT_PASSWORD}
ports:
- 5678:5678
links:
- postgres
volumes:
- n8n_storage:/home/node/.n8n
depends_on:
postgres:
condition: service_healthy
