34 lines
785 B
YAML
34 lines
785 B
YAML
services:
|
|
n8n:
|
|
build:
|
|
context: .
|
|
ports:
|
|
- "5678:5678"
|
|
environment:
|
|
- DB_TYPE=postgresdb
|
|
- DB_POSTGRESDB_HOST=postgres
|
|
- DB_POSTGRESDB_PORT=5432
|
|
- DB_POSTGRESDB_DATABASE=${POSTGRES_DB}
|
|
- DB_POSTGRESDB_USER=${POSTGRES_USER}
|
|
- DB_POSTGRESDB_PASSWORD=${POSTGRES_PASSWORD}
|
|
- N8N_EXTENSIONS_INSTALL=@n8n-io/n8n-nodes-base
|
|
volumes:
|
|
- ./config/.gemini:/root/.gemini
|
|
- n8n_data:/data
|
|
depends_on:
|
|
- postgres
|
|
|
|
postgres:
|
|
image: postgres:15
|
|
restart: always
|
|
environment:
|
|
- POSTGRES_DB=${POSTGRES_DB}
|
|
- POSTGRES_USER=${POSTGRES_USER}
|
|
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
|
|
volumes:
|
|
n8n_data:
|
|
postgres_data:
|