fix: docker prod env variable fix (#1170)

* fix: docker prod env variable fix

* lint and typecheck

* removed hardcoded tag
This commit is contained in:
Anirban Kar
2025-01-25 03:52:26 +05:30
committed by GitHub
parent 5a0489f3c3
commit 660353360f
6 changed files with 63 additions and 20 deletions

View File

@@ -72,3 +72,21 @@ services:
- "5173:5173"
command: pnpm run dev --host 0.0.0.0
profiles: ["development", "default"]
app-prebuild:
image: ghcr.io/stackblitz-labs/bolt.diy:latest
ports:
- "5173:5173"
environment:
- NODE_ENV=production
- COMPOSE_PROFILES=production
# No strictly needed but serving as hints for Coolify
- PORT=5173
- OLLAMA_API_BASE_URL=http://127.0.0.1:11434
- DEFAULT_NUM_CTX=${DEFAULT_NUM_CTX:-32768}
- RUNNING_IN_DOCKER=true
extra_hosts:
- "host.docker.internal:host-gateway"
command: pnpm run dockerstart
profiles:
- prebuilt