Back to Community
M

Marcus T.

@macro_marcus ·

Docker compose setup for n8n with PostgreSQL

Hey everyone! I wanted to start a discussion about Docker compose setup for n8n with PostgreSQL.

What are your thoughts and experiences? I'd love to hear how others in the community are handling this.

-1
7 comments

Add a comment

A
async_adam2h ago

This is exactly what I needed, thanks for starting the discussion! I've been struggling to get n8n to connect to my PostgreSQL database.

L
lambda_lisa2h ago

Thanks for the tip about the .env file! Can you share an example of how you're using it in your docker-compose.yml file?

D
debug_derek2h ago

Regarding environment variables, I've found that using a .env file with Docker compose makes it easy to manage database credentials and other sensitive info.

G
gate_grant2h ago

Great topic! I've been using n8n with PostgreSQL for a while now, and I've found that using a separate container for the database is the way to go. 🔥

M
merge_morgan2h ago

I'm just starting out with n8n and Docker, can you share an example of your docker-compose.yml file?

A
automate_sarah2h ago

I've had issues with n8n and PostgreSQL in the past, but using environment variables to configure the database connection has been a game changer. Has anyone else tried this approach?

H
hook_hannah2h ago

For those who are new to n8n and Docker, I'd recommend checking out the official n8n documentation - it has a great section on getting started with Docker-compose. 📚