File size: 2,447 Bytes
2e1ab99 f48d08f 2e1ab99 |
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 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
services:
# app-prod:
# image: bolt-ai:production
# build:
# context: .
# dockerfile: Dockerfile
# target: bolt-ai-production
# ports:
# - "5173:5173"
# env_file: ".env.local"
# environment:
# - NODE_ENV=production
# - COMPOSE_PROFILES=production
# # No strictly needed but serving as hints for Coolify
# - PORT=5173
# - GROQ_API_KEY=${GROQ_API_KEY}
# - HuggingFace_API_KEY=${HuggingFace_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}
# - XAI_API_KEY=${XAI_API_KEY}
# - TOGETHER_API_KEY=${TOGETHER_API_KEY}
# - TOGETHER_API_BASE_URL=${TOGETHER_API_BASE_URL}
# - VITE_LOG_LEVEL=${VITE_LOG_LEVEL:-debug}
# - DEFAULT_NUM_CTX=${DEFAULT_NUM_CTX:-32768}
# - RUNNING_IN_DOCKER=true
# extra_hosts:
# - "host.docker.internal:host-gateway"
# command: pnpm run dockerstart
# profiles:
# - production
app-dev:
image: bolt-ai:development
build:
target: bolt-ai-development
environment:
- NODE_ENV=development
- VITE_HMR_PROTOCOL=ws
- VITE_HMR_HOST=localhost
- VITE_HMR_PORT=5173
- CHOKIDAR_USEPOLLING=true
- WATCHPACK_POLLING=true
- PORT=5173
- GROQ_API_KEY=${GROQ_API_KEY}
- HuggingFace_API_KEY=${HuggingFace_API_KEY}
- OPENAI_API_KEY=${OPENAI_API_KEY}
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY}
- OPEN_ROUTER_API_KEY=${OPEN_ROUTER_API_KEY}
- XAI_API_KEY=${XAI_API_KEY}
- GOOGLE_GENERATIVE_AI_API_KEY=${GOOGLE_GENERATIVE_AI_API_KEY}
- OLLAMA_API_BASE_URL=${OLLAMA_API_BASE_URL}
- TOGETHER_API_KEY=${TOGETHER_API_KEY}
- TOGETHER_API_BASE_URL=${TOGETHER_API_BASE_URL}
- VITE_LOG_LEVEL=${VITE_LOG_LEVEL:-debug}
- DEFAULT_NUM_CTX=${DEFAULT_NUM_CTX:-32768}
- RUNNING_IN_DOCKER=true
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- type: bind
source: .
target: /app
consistency: cached
- /app/node_modules
ports:
- "5173:5173"
command: pnpm run dev --host 0.0.0.0
profiles: ["development", "default"]
|