2024-10-21 19:10:08 +00:00
|
|
|
services:
|
2024-10-24 18:48:05 +00:00
|
|
|
bolt-ai:
|
|
|
|
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}
|
|
|
|
- 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}
|
|
|
|
- VITE_LOG_LEVEL=${VITE_LOG_LEVEL:-debug}
|
2024-10-24 18:48:05 +00:00
|
|
|
command: pnpm run dockerstart
|
|
|
|
profiles:
|
|
|
|
- production # This service only runs in the production profile
|
|
|
|
|
|
|
|
bolt-ai-dev:
|
|
|
|
image: bolt-ai:development
|
|
|
|
build:
|
|
|
|
target: bolt-ai-development
|
|
|
|
environment:
|
|
|
|
- NODE_ENV=development
|
2024-10-24 18:50:45 +00:00
|
|
|
- COMPOSE_PROFILES=development
|
2024-10-24 20:36:57 +00:00
|
|
|
- PORT=5173
|
|
|
|
- GROQ_API_KEY=${GROQ_API_KEY}
|
|
|
|
- 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}
|
|
|
|
- VITE_LOG_LEVEL=${VITE_LOG_LEVEL:-debug}
|
2024-10-21 19:10:08 +00:00
|
|
|
volumes:
|
|
|
|
- .:/app
|
|
|
|
- /app/node_modules
|
2024-10-24 18:48:05 +00:00
|
|
|
ports:
|
|
|
|
- "5173:5173" # Same port, no conflict as only one runs at a time
|
|
|
|
command: pnpm run dev --host 0.0.0.0
|
|
|
|
profiles: ["development", "default"] # Make development the default profile
|