-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
27 lines (27 loc) · 1.06 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
services:
app:
build: .
ports:
- "3000:3000"
environment:
- NODE_ENV=production
- DATABASE_URL=${DATABASE_URL}
- KEYWORDS_API_KEY=${KEYWORDS_API_KEY}
- KEYWORDS_API_URL=${KEYWORDS_API_URL}
- REDIS_URL=${REDIS_URL}
- AGENT_EMBEDDER_API_KEY=${AGENT_EMBEDDER_API_KEY}
- NEXT_PUBLIC_EMBEDDER_SERVER_URL=${NEXT_PUBLIC_EMBEDDER_SERVER_URL}
command: >
bash -c '
echo "Running init script..."
npm run init
echo "Copying Prisma files..."
mkdir -p .output/server/node_modules/@magickml/server-db/src/lib/prisma/client-core/
find ./node_modules/@magickml/server-db/src/lib/prisma/client-core/ -type f \( -name "libquery_engine-*" -o -name "schema.prisma" \) -exec cp {} .output/server/node_modules/@magickml/server-db/src/lib/prisma/client-core/ \;
echo "Prisma client-core directory contents:"
ls -la .output/server/node_modules/@magickml/server-db/src/lib/prisma/client-core/
echo "Starting application..."
npm start
'
env_file:
- .env