1 changed files with 25 additions and 8 deletions
@ -1,14 +1,31 @@ |
|||||
|
version: '3.8' |
||||
|
|
||||
services: |
services: |
||||
n8n: |
n8n: |
||||
image: n8nio/n8n:latest |
image: n8nio/n8n:1.105.2 |
||||
container_name: n8n |
container_name: n8n |
||||
environment: |
restart: unless-stopped |
||||
- PUID=1000 |
|
||||
- PGID=1000 |
|
||||
- NODE_ENV=production |
|
||||
- N8N_SECURE_COOKIE=false |
|
||||
ports: |
ports: |
||||
- 5678:5678 |
- 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: |
volumes: |
||||
- /usr/docker_binds/n8n/.n8n:/home/node/.n8n |
- /usr/docker_binds/n8n/.n8n:/home/node/.n8n |
||||
|
postgres: |
||||
|
image: postgres:14 |
||||
|
container_name: n8n_postgres |
||||
restart: unless-stopped |
restart: unless-stopped |
||||
|
environment: |
||||
|
- POSTGRES_DB=${POSTGRES_DB} # From .env |
||||
|
- POSTGRES_USER=${POSTGRES_USER} # From .env |
||||
|
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD} # From .env |
||||
|
volumes: |
||||
|
- postgres_data:/var/lib/postgresql/data # Persist your database |
||||
|
networks: |
||||
|
- n8n |
||||
Loading…
Reference in new issue