2024-10-21 19:10:08 +00:00
|
|
|
services:
|
2024-12-01 12:17:34 +00:00
|
|
|
app-prod:
|
2024-10-24 18:48:05 +00:00
|
|
|
image: bolt-ai:production
|
2024-10-21 19:10:08 +00:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile
|
2024-10-24 18:48:05 +00:00
|
|
|
target: bolt-ai-production
|
2024-10-21 19:10:08 +00:00
|
|
|
ports:
|
2024-10-24 18:48:05 +00:00
|
|
|
- "5173:5173"
|
|
|
|
env_file: ".env.local"
|
2024-10-21 19:10:08 +00:00
|
|
|
environment:
|
|
|
|
- NODE_ENV=production
|
2024-10-24 18:50:45 +00:00
|
|
|
- COMPOSE_PROFILES=production
|
2024-10-24 20:36:57 +00:00
|
|
|
# No strictly neded but serving as hints for Coolify
|
|
|
|
- PORT=5173
|
|
|
|
- GROQ_API_KEY=${GROQ_API_KEY}
|
2024-11-17 23:49:02 +00:00
|
|
|
- HuggingFace_API_KEY=${HuggingFace_API_KEY}
|
2024-10-24 20:36:57 +00:00
|
|
|
- OPENAI_API_KEY=${OPENAI_API_KEY}
|
|
|
|
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY}
|
|
|
|
- OPEN_ROUTER_API_KEY=${OPEN_ROUTER_API_KEY}
|
|
|
|
- GOOGLE_GENERATIVE_AI_API_KEY=${GOOGLE_GENERATIVE_AI_API_KEY}
|
|
|
|
- OLLAMA_API_BASE_URL=${OLLAMA_API_BASE_URL}
|
2024-11-23 05:20:35 +00:00
|
|
|
- TOGETHER_API_KEY=${TOGETHER_API_KEY}
|
|
|
|
- TOGETHER_API_BASE_URL=${TOGETHER_API_BASE_URL}
|
2024-10-24 20:36:57 +00:00
|
|
|
- VITE_LOG_LEVEL=${VITE_LOG_LEVEL:-debug}
|
2024-11-19 07:46:51 +00:00
|
|
|
- DEFAULT_NUM_CTX=${DEFAULT_NUM_CTX:-32768}
|
2024-11-05 15:42:49 +00:00
|
|
|
- RUNNING_IN_DOCKER=true
|
|
|
|
extra_hosts:
|
2024-12-01 12:17:34 +00:00
|
|
|
- "host.docker.internal:host-gateway"
|
2024-10-24 18:48:05 +00:00
|
|
|
command: pnpm run dockerstart
|
|
|
|
profiles:
|
2024-12-01 12:17:34 +00:00
|
|
|
- production
|
2024-10-24 18:48:05 +00:00
|
|
|
|
2024-12-01 12:17:34 +00:00
|
|
|
app-dev:
|
2024-10-24 18:48:05 +00:00
|
|
|
image: bolt-ai:development
|
|
|
|
build:
|
|
|
|
target: bolt-ai-development
|
|
|
|
environment:
|
|
|
|
- NODE_ENV=development
|
2024-11-01 12:09:19 +00:00
|
|
|
- VITE_HMR_PROTOCOL=ws
|
|
|
|
- VITE_HMR_HOST=localhost
|
|
|
|
- VITE_HMR_PORT=5173
|
|
|
|
- CHOKIDAR_USEPOLLING=true
|
2024-12-01 12:17:34 +00:00
|
|
|
- WATCHPACK_POLLING=true
|
2024-10-24 20:36:57 +00:00
|
|
|
- PORT=5173
|
|
|
|
- GROQ_API_KEY=${GROQ_API_KEY}
|
2024-11-17 23:49:02 +00:00
|
|
|
- HuggingFace_API_KEY=${HuggingFace_API_KEY}
|
2024-10-24 20:36:57 +00:00
|
|
|
- OPENAI_API_KEY=${OPENAI_API_KEY}
|
|
|
|
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY}
|
|
|
|
- OPEN_ROUTER_API_KEY=${OPEN_ROUTER_API_KEY}
|
|
|
|
- GOOGLE_GENERATIVE_AI_API_KEY=${GOOGLE_GENERATIVE_AI_API_KEY}
|
|
|
|
- OLLAMA_API_BASE_URL=${OLLAMA_API_BASE_URL}
|
2024-11-23 05:20:35 +00:00
|
|
|
- TOGETHER_API_KEY=${TOGETHER_API_KEY}
|
|
|
|
- TOGETHER_API_BASE_URL=${TOGETHER_API_BASE_URL}
|
2024-10-24 20:36:57 +00:00
|
|
|
- VITE_LOG_LEVEL=${VITE_LOG_LEVEL:-debug}
|
2024-11-19 07:46:51 +00:00
|
|
|
- DEFAULT_NUM_CTX=${DEFAULT_NUM_CTX:-32768}
|
2024-11-05 15:42:49 +00:00
|
|
|
- RUNNING_IN_DOCKER=true
|
|
|
|
extra_hosts:
|
2024-12-01 12:17:34 +00:00
|
|
|
- "host.docker.internal:host-gateway"
|
2024-10-21 19:10:08 +00:00
|
|
|
volumes:
|
2024-11-01 12:09:19 +00:00
|
|
|
- type: bind
|
|
|
|
source: .
|
|
|
|
target: /app
|
|
|
|
consistency: cached
|
2024-10-21 19:10:08 +00:00
|
|
|
- /app/node_modules
|
2024-10-24 18:48:05 +00:00
|
|
|
ports:
|
2024-12-01 12:17:34 +00:00
|
|
|
- "5173:5173"
|
2024-10-24 18:48:05 +00:00
|
|
|
command: pnpm run dev --host 0.0.0.0
|
2024-12-01 12:17:34 +00:00
|
|
|
profiles: ["development", "default"]
|