Skip to content

Commit 3390ea5

Browse files
committed
docker fixes, docker-compose
1 parent e112fb4 commit 3390ea5

File tree

5 files changed

+17
-4
lines changed

5 files changed

+17
-4
lines changed

examples/nextjs-together-llamaindex/docker-compose.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1+
name: nextjs-together-llamaindex
12
version: '3.8'
3+
networks:
4+
bridge:
5+
driver: bridge
26

37
services:
48
frontend:
@@ -15,6 +19,8 @@ services:
1519
- NEXT_PUBLIC_API_HOSTNAME=http://backend:3000
1620
depends_on:
1721
- backend
22+
networks:
23+
- bridge
1824

1925
backend:
2026
build:
@@ -23,4 +29,6 @@ services:
2329
ports:
2430
- "8000:3000"
2531
env_file:
26-
- ./backend/.env
32+
- ./backend/.env
33+
networks:
34+
- bridge
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
.next

examples/nextjs-together-llamaindex/frontend/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@
77
"build": "next build",
88
"start": "next start",
99
"lint": "next lint",
10-
"clean": "rm -rf node_modules"
10+
"clean": "rm -rf node_modules",
11+
"docker:build": "docker build -t restack-nextjs-together-llamaindex-frontend .",
12+
"docker:run": "docker run -p 3000 restack-nextjs-together-llamaindex-frontend",
13+
"docker:stop": "docker stop restack-nextjs-together-llamaindex-frontend"
1114
},
1215
"dependencies": {
1316
"@restackio/ai": "^0.0.81",

examples/nextjs-together-llamaindex/frontend/src/app/components/Examples.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import { useState } from "react";
44
import { Example, examples } from "./examplesList";
5-
import { triggerWorkflow } from "@/app/actions/Trigger";
5+
import { triggerWorkflow } from "@/app/actions/trigger";
66

77
const Examples = () => {
88
const [loading, setLoading] = useState(false);

examples/nextjs-together-llamaindex/frontend/src/app/components/examplesList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ export type Example = {
33
description: string;
44
integrations: string[];
55
workflowName: string;
6-
input: Record<string, any>;
6+
input: Record<string, unknown>;
77
};
88

99
export const examples = [

0 commit comments

Comments
 (0)