You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.1 KiB
41 lines
1.1 KiB
version: '3.8'
|
|
|
|
services:
|
|
n8n:
|
|
image: n8nio/n8n:1.105.2
|
|
container_name: n8n
|
|
restart: unless-stopped
|
|
ports:
|
|
- 5678:5678 # Only exposed locally, Traefik handles external access
|
|
environment:
|
|
- DB_TYPE=postgresdb
|
|
- DB_POSTGRESDB_HOST=postgres
|
|
- DB_POSTGRESDB_PORT=5432
|
|
- DB_POSTGRESDB_DATABASE=${POSTGRES_DB} # Comes from .env file
|
|
- DB_POSTGRESDB_USER=${POSTGRES_USER} # Comes from .env file
|
|
- DB_POSTGRESDB_PASSWORD=${POSTGRES_PASSWORD} # Comes from .env file
|
|
- NODE_FUNCTION_ALLOW_EXTERNAL=langchain # Important for LangChain nodes!
|
|
volumes:
|
|
- n8n_storage:/home/node/.n8n
|
|
networks:
|
|
- n8n
|
|
depends_on:
|
|
- postgres
|
|
postgres:
|
|
image: postgres:14
|
|
container_name: n8n_postgres
|
|
restart: unless-stopped
|
|
environment:
|
|
- POSTGRES_DB=${POSTGRES_DB} # From .env
|
|
- POSTGRES_USER=${POSTGRES_USER} # From .env
|
|
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD} # From .env
|
|
volumes:
|
|
- /usr/docker_binds/n8n/postgres:/var/lib/postgresql/data # Persist your database
|
|
networks:
|
|
- n8n
|
|
|
|
networks:
|
|
n8n:
|
|
|
|
volumes:
|
|
n8n_storage:
|