File tree Expand file tree Collapse file tree 5 files changed +27776
-30725
lines changed
Expand file tree Collapse file tree 5 files changed +27776
-30725
lines changed Original file line number Diff line number Diff line change 11# Instruction for deployment on Codesphere
22
3- 1 ) create a new workspace
4- insert this github link to clone this repo directly in your workspace: https://github.com/Datata1/deploy.n8n.codesphere
3+ 1 . Create a new workspace:
4+ - Use the HTTP url of this repo to create a New Workspace in Codesphere
55
6- 2 ) go to the CI-Pipeline UI:
7- run the prepare-stage (this might take a couple minutes)
8- when the preparestage is ready (when it is green) run the run stage
6+ 2 . Go to "CI & Deploy":
7+ - Run the Prepare Stage (this might take a couple minutes)
8+ - When the Prepare Stage is ready, start the Run Stage
99
10- 3 ) in the top right corner you can see 'open deployment'. cliuck this button and you can log in to n8n.
10+ 3 . Use 'Open Deployment' in the top right corner to open N8N.
11+
12+ ## Bonus: Ollama Model hosted on Codesphere
13+
14+ Together with N8N, this template deploys an Ollama ` qwen ` model hosted on Codesphere.
15+ To use it in N8N, add an ` Ollama ` node (from the AI category) and configure it:
16+
17+ ```
18+ # Replace WORKSPACE_ID with your current Workspace ID!
19+ Base URL: http://ws-server-WORKSPACE_ID-ollama-service.workspaces.svc.cluster.local:3000
20+ API Key: <none>
21+ ```
Original file line number Diff line number Diff line change 1+ schemaVersion : v0.2
12prepare :
23 steps :
3- - name : install dependency
4- command : npm install cache-manager@5.2.4 --save
5- - name : install n8n
6- command : npm install n8n
4+ - name : install Node.js 24
5+ command : nix-env -iA nixpkgs.nodejs_24
6+ - name : install Ollama
7+ command : nix-env -iA nixpkgs.ollama nixpkgs.process-compose
8+ - name : install dependencies
9+ command : npm install
710test :
811 steps : []
912run :
10- steps :
11- - name : deploy
12- command : sudo n install 20.0.0 && N8N_USER_FOLDER=/home/user/app/ N8N_PORT=3000
13- N8N_PROTOCOL=https ./node_modules/n8n/bin/n8n start --tunnel
13+ n8n-frontend :
14+ steps :
15+ - name : n8n start
16+ command : N8N_USER_FOLDER=/home/user/app/ N8N_PROTOCOL=http N8N_PORT=3000
17+ N8N_HOST=ws-server-$WORKSPACE_ID-n8n-frontend.workspaces.svc.cluster.local
18+ ./node_modules/n8n/bin/n8n start
19+ plan : 8
20+ replicas : 1
21+ network :
22+ ports :
23+ - port : 3000
24+ isPublic : false
25+ paths :
26+ - port : 3000
27+ path : /
28+ stripPath : false
29+ ollama-service :
30+ steps :
31+ - command : process-compose -t=False -f process-compose.models.yaml
32+ plan : 9
33+ replicas : 1
34+ network :
35+ ports :
36+ - port : 3000
37+ isPublic : false
38+ paths :
39+ - port : 3000
40+ path : /model
41+ stripPath : true
You can’t perform that action at this time.
0 commit comments