Cannot connect to postgress

i am using the starter kit. N8N run fine. I am trying to connect to the postgres data base with the credential in the .env file.

POSTGRES_USER=root
POSTGRES_PASSWORD=A password
POSTGRES_DB=n8n

N8N_ENCRYPTION_KEY=A Password
N8N_USER_MANAGEMENT_JWT_SECRET=Another password
N8N_DEFAULT_BINARY_DATA_MODE=filesystem

i cannot connect. I tried host.docker.internal instead of localhost like i use for ollama with not luck. I am using port 5432

The issue is that localhost is not the correct address, obviously.

The address should be of the name of postgres container running in your docker infrastructure. For me it’s postgres. How you if could be different if you named your postgres container differently.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.