Hey. I have setup n8n in a server using docker compose.
Changed the use and pass in the env file and on the docker compose file using them.
Still I can only login using user:password. Is there an addn step? This is my compose file.
version: "3"
services:
n8n:
image: n8nio/n8n:latest
restart: always
ports:
- "5678:5678"
expose:
- 5678
labels:
- traefik.enable=true
- traefik.http.routers.n8n.rule=Host(`${SUBDOMAIN}.${DOMAIN_NAME}`)
- traefik.http.routers.n8n.tls=true
- traefik.http.routers.n8n.entrypoints=web
- traefik.http.routers.n8n.tls.certresolver=letsencrypt
- traefik.docker.network=traefik_web
environment:
- N8N_BASIC_AUTH_ACTIVE=true
- N8N_BASIC_AUTH_USER=${N8N_BASIC_AUTH_USER}
- N8N_BASIC_AUTH_PASSWORD=${N8N_BASIC_AUTH_PASSWORD}
- N8N_HOST=${SUBDOMAIN}.${DOMAIN_NAME}
- N8N_PORT=5678
- N8N_PROTOCOL=https
- NODE_ENV=production
- WEBHOOK_TUNNEL_URL=https://${SUBDOMAIN}.${DOMAIN_NAME}/
- GENERIC_TIMEZONE=${GENERIC_TIMEZONE}
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./n8n:/home/node/.n8n
networks:
- web
networks:
web:
external:
name: traefik_web