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.

33 lines
1.1 KiB

5 months ago
version: '3.8'
5 months ago
services:
n8n:
5 months ago
image: n8nio/n8n:1.105.2
5 months ago
container_name: n8n
5 months ago
restart: unless-stopped
5 months ago
ports:
5 months ago
- 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!
5 months ago
volumes:
- /usr/docker_binds/n8n/.n8n:/home/node/.n8n
5 months ago
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
5 months ago
networks:
- n8n
networks:
n8n: