Docker Additions

Added Dockerfile and docker-compose.yml, also adjusted start command to listen for all IP's and on Port 3000
This commit is contained in:
Aaron Bolton
2024-10-21 20:10:08 +01:00
parent 50a501ecb1
commit 0ef30967dd
3 changed files with 53 additions and 1 deletions

23
docker-compose.yml Normal file
View File

@@ -0,0 +1,23 @@
services:
bolt-app:
build:
context: .
dockerfile: Dockerfile
ports:
- "3000:3000"
environment:
- NODE_ENV=production
# Add any other environment variables your app needs
# - OPENAI_API_KEY=${OPENAI_API_KEY}
# - ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY}
# - GROQ_API_KEY=${GROQ_API_KEY}
volumes:
# This volume is for development purposes, allowing live code updates
# Comment out or remove for production
- .:/app
# This volume is to prevent node_modules from being overwritten by the above volume
- /app/node_modules
command: pnpm run start
volumes:
node_modules: