平时定期跑一跑,还可以吃一吃服务器内存
https://blog.dejavu.moe/posts/try-n8n-automation-with-ollama/
省流:Docker Compose 模板
services: ollama: container_name: ollama image: ollama/ollama:latest restart: unless-stopped environment: - OLLAMA_HOST=0.0.0.0 - OLLAMA_KEEP_ALIVE=1h volumes: - ./ollama:/root/.ollama postgres: image: postgres:17.6-alpine container_name: n8n-postgres restart: unless-stopped user: "999:999" environment: POSTGRES_USER: n8n POSTGRES_PASSWORD: n8npassword POSTGRES_DB: n8n LANG: en_US.UTF-8 LC_ALL: en_US.UTF-8 volumes: - ./postgres_data:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U n8n -d n8n || exit 1"] interval: 10s timeout: 5s retries: 10 start_period: 30s n8n: image: docker.n8n.io/n8nio/n8n:latest container_name: n8n restart: unless-stopped user: "1000:1000" environment: - DB_TYPE=postgresdb - DB_POSTGRESDB_HOST=postgres - DB_POSTGRESDB_PORT=5432 - DB_POSTGRESDB_DATABASE=n8n - DB_POSTGRESDB_USER=n8n - N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true - N8N_RUNNERS_ENABLED=true - N8N_HOST=n8n.your.domain - N8N_PORT=5678 - N8N_PROTOCOL=https - WEBHOOK_URL=https://n8n.your.domain/ - N8N_EDITOR_BASE_URL=https://n8n.your.domain/ - N8N_PROXY_HOPS=1 - GENERIC_TIMEZONE=Asia/Shanghai - TZ=Asia/Shanghai ports: - "127.0.0.1:15678:5678" extra_hosts: - "host.docker.internal:host-gateway" depends_on: postgres: condition: service_healthy volumes: - ./n8n_data:/home/node/.n8n
评论 (0)