Describe the problem/error/question
I keep my Docker volumes in a neat directory. When creating the new n8n containers using the following compose, it gets stuck in the certificate generation. I don’t need certificates because I use port forwarding and Cloudflare already provided the SSL to my domain which then gets stored in the npm for proxy.
In my tests, the only directory that seems to work is in the docker default directory which is /var/lib/docker/volumes…the nested directory Configs or /opt/stacks or anything but….
services:
n8n:
image: n8nio/n8n:latest
restart: always
ports:
- "5678:5678"
environment:
- [email protected]
- N8N_BASIC_AUTH_PASSWORD=Kissmefool1
volumes:
- /var/lib/Docker/volumes/Configs/n8n/data:/home/node/.n8n
- /var/lib/Docker/volumes/Configs/n8n/files:/files
depends_on:
- postgres
# labels:
# - "traefik.enable=true"
# - "traefik.http.routers.${TRAEFIK_ROUTER_NAME}.rule=Host(`${TRAEFIK_DOMAIN}`)"
# - "traefik.http.routers.${TRAEFIK_ROUTER_NAME}.entrypoints=websecure"
# - "traefik.http.routers.${TRAEFIK_ROUTER_NAME}.tls.certresolver=${TRAEFIK_CERT_RESOLVER}"
# - "traefik.http.services.${TRAEFIK_ROUTER_NAME}.loadbalancer.server.port=5678"
# If you're running your own external PostgreSQL instance, you can comment out this service
postgres:
image: postgres:15
restart: always
environment:
- POSTGRES_DB=n8n
- POSTGRES_USER=n8n
- POSTGRES_PASSWORD=changeme123
volumes:
- /var/lib/Docker/volumes/Configs/n8n/postgres-data:/var/lib/postgresql/data
What is the error message (if any)?
n8n-1 | No encryption key found - Auto-generating and saving to: /home/node/.n8n/config
n8n-1 | No encryption key found - Auto-generating and saving to: /home/node/.n8n/config
n8n-1 | Error: EACCES: permission denied, open '/home/node/.n8n/config'
Please share your workflow
(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)
Share the output returned by the last node
Information on your n8n setup
- n8n version:
- Database (default: SQLite): Postgres
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- Running n8n via (Docker, npm, n8n cloud, desktop app): Docker and Portainer
- Operating system: Ubuntu 22.04