https://github.com/dean9703111/n8n-google-sheet-exmaple
使用 docker-compose.yml 安裝 n8n
你可以直接 git clone 筆者的 GitHub 專案,或者建立一個 n8n
的資料夾,新增 docker-compose.yml
檔案。
volumes: n8n_storage: services: n8n: image: n8nio/n8n:latest restart: always ports: - "127.0.0.1:5678:5678" # 根據實際需求設定 volumes: - n8n_storage:/home/node/.n8n
貼上內容後,在終端機(Terminal)輸入 docker compose up -d
即可啟動
加上
environment:
- N8N_SECURE_COOKIE=false # 或改成 true 並上 HTTPS
- N8N_PROTOCOL=http