Hi together,
after getting mail to work i get the “Forget Password” Mail. There is a link in the Mail, when clicking on it, it will send me to https://localhost:5678… which could not work.
I’ve read that there some environment variables must also set. I’ve tried to achieve this …
services:
n8n:
image: n8nio/n8n:latest
ports:
- "5678:5678"
restart: always
environment:
- DOMAIN_NAME=mydomain.de
- SUBDOMAIN=n8n
- DB_TYPE=postgresdb
- DB_POSTGRESDB_HOST=postgres
- DB_POSTGRESDB_PORT=5432
- DB_POSTGRESDB_DATABASE=n8n
- DB_POSTGRESDB_USER=n8n
- DB_POSTGRESDB_PASSWORD=0987654321
- GENERIC_TIMEZONE=Europe/Berlin
- N8N_SECURE_COOKIE=false
- N8N_EMAIL_MODE=smtp
- N8N_SMTP_HOST=smtp.strato.de
- N8N_SMTP_PORT=465
- [email protected]
- N8N_SMTP_PASS=1234567890
- [email protected]
- N8N_SMTP_SSL=true
- N8N_HOST=${SUBDOMAIN}.${DOMAIN_NAME}
- N8N_PORT=5678
- N8N_PROTOCOL=https
- NODE_ENV=production
- WEBHOOK_URL=https://${SUBDOMAIN}.${DOMAIN_NAME}/
volumes:
- n8n_data:/home/node/.n8n
depends_on:
- postgres
postgres:
image: postgres:14
restart: always
environment:
- POSTGRES_USER=n8n
- POSTGRES_PASSWORD=0987654321
- POSTGRES_DB=n8n
volumes:
- postgres_data:/var/lib/postgresql/data
app:
image: 'jc21/nginx-proxy-manager:latest'
restart: unless-stopped
ports:
- '80:80'
- '443:443'
- '81:81'
volumes:
- ./data:/data
- ./letsencrypt:/etc/letsencrypt
volumes:
n8n_data:
postgres_data:
But when i try to start up docker, then there’s stated that the variable is not set:
user@linux:~/n8n-produktiv$ sudo docker compose up -d
[sudo] Passwort für user:
WARN[0000] The "SUBDOMAIN" variable is not set. Defaulting to a blank string.
WARN[0000] The "DOMAIN_NAME" variable is not set. Defaulting to a blank string.
WARN[0000] The "SUBDOMAIN" variable is not set. Defaulting to a blank string.
WARN[0000] The "DOMAIN_NAME" variable is not set. Defaulting to a blank string.
[+] Running 3/3
✔ Container n8n-produktiv-postgres-1 Running 0.0s
✔ Container n8n-produktiv-app-1 Running 0.0s
✔ Container n8n-produktiv-n8n-1 Running 0.0s
user@linux:~/n8n-produktiv$ ^C
But I’ve the domian name and subdomain in docker-compose.yml. Where’s my fault? Cant understand why it’s not using it.
