Skip to content

Commit

Permalink
Fixing up Docker Compose to work with hot reloads in development and …
Browse files Browse the repository at this point in the history
…environment variables
  • Loading branch information
coleam00 committed Nov 1, 2024
1 parent 349c5d5 commit 22ae9d8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Rename this file to .env.local once you have filled in the below environment variables!
# Rename this file to .env once you have filled in the below environment variables!

# Get your GROQ API Key here -
# https://console.groq.com/keys
Expand Down
11 changes: 9 additions & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ services:
target: bolt-ai-development
environment:
- NODE_ENV=development
- COMPOSE_PROFILES=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}
- OPENAI_API_KEY=${OPENAI_API_KEY}
Expand All @@ -40,7 +44,10 @@ services:
- OLLAMA_API_BASE_URL=${OLLAMA_API_BASE_URL}
- VITE_LOG_LEVEL=${VITE_LOG_LEVEL:-debug}
volumes:
- .:/app
- type: bind
source: .
target: /app
consistency: cached
- /app/node_modules
ports:
- "5173:5173" # Same port, no conflict as only one runs at a time
Expand Down

0 comments on commit 22ae9d8

Please sign in to comment.