mirror of
https://github.com/n8n-io/n8n.git
synced 2026-08-29 01:39:24 +08:00
1ef82d5081
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
35 lines
1015 B
YAML
35 lines
1015 B
YAML
volumes:
|
|
postgres-data:
|
|
|
|
services:
|
|
postgres:
|
|
image: postgres:18-alpine
|
|
restart: unless-stopped
|
|
volumes:
|
|
- postgres-data:/var/lib/postgresql
|
|
environment:
|
|
- POSTGRES_DB=n8n
|
|
- POSTGRES_PASSWORD=password
|
|
|
|
n8n:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
# Required by the docker-in-docker devcontainer feature
|
|
privileged: true
|
|
volumes:
|
|
- ../..:/workspaces:cached
|
|
command: sleep infinity
|
|
depends_on:
|
|
- postgres
|
|
environment:
|
|
DB_POSTGRESDB_HOST: postgres
|
|
DB_TYPE: postgresdb
|
|
DB_POSTGRESDB_PASSWORD: password
|
|
# Prompt-cache TTL in seconds. 1 hour keeps the cache warm between turns.
|
|
ANTHROPIC_PROMPT_CACHE_TTL: "3600"
|
|
# Do not add CODESPACE_NAME here. Codespaces does not give it to compose, so
|
|
# this file can set an empty value only. An empty value is worse than no
|
|
# value, because tmux keeps it for each new pane. The consumers read the name
|
|
# with scripts/codespace-env.mjs.
|