Aktueller Stand
This commit is contained in:
@@ -38,7 +38,12 @@ services:
|
||||
depends_on:
|
||||
- postgres
|
||||
- redis
|
||||
command: ["sh", "-c", "if [ \"${AUTO_MIGRATE:-false}\" = \"true\" ]; then npx prisma migrate deploy; fi; npm run prisma:generate && npm run dev"]
|
||||
command:
|
||||
[
|
||||
"sh",
|
||||
"-c",
|
||||
"node -e \"require.resolve('tsx')\" 2>/dev/null || npm install --no-audit --no-fund --include=dev; node -e \"require.resolve('@prisma/adapter-pg')\" 2>/dev/null || npm install --no-audit --no-fund --include=dev; node -e \"const v=require('prisma/package.json').version;process.exit(v.startsWith('7.')?0:1)\" 2>/dev/null || npm install --no-audit --no-fund --include=dev; if [ \"${AUTO_MIGRATE:-false}\" = \"true\" ]; then npx prisma migrate deploy; fi; npm run prisma:generate && npm run dev"
|
||||
]
|
||||
ports:
|
||||
- "${BIND_IP:-127.0.0.1}:${API_PORT:-8000}:${API_PORT:-8000}"
|
||||
volumes:
|
||||
@@ -72,7 +77,12 @@ services:
|
||||
depends_on:
|
||||
- postgres
|
||||
- redis
|
||||
command: ["sh", "-c", "npm run prisma:generate && npm run worker:dev"]
|
||||
command:
|
||||
[
|
||||
"sh",
|
||||
"-c",
|
||||
"node -e \"require.resolve('tsx')\" 2>/dev/null || npm install --no-audit --no-fund --include=dev; node -e \"require.resolve('@prisma/adapter-pg')\" 2>/dev/null || npm install --no-audit --no-fund --include=dev; node -e \"const v=require('prisma/package.json').version;process.exit(v.startsWith('7.')?0:1)\" 2>/dev/null || npm install --no-audit --no-fund --include=dev; npm run prisma:generate && npm run worker:dev"
|
||||
]
|
||||
volumes:
|
||||
- ./backend:/app
|
||||
- worker_node_modules:/app/node_modules
|
||||
|
||||
Reference in New Issue
Block a user