mirror of
https://github.com/SirBlobby/Hoya26.git
synced 2026-02-03 19:24:34 -05:00
Docker Update and Fixes
This commit is contained in:
@@ -1,17 +1,38 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
# The Flask Backend
|
||||
# The Flask Backend API
|
||||
api:
|
||||
build: ./backend # Path to your Dockerfile
|
||||
build: ./backend
|
||||
container_name: flask_api
|
||||
restart: always
|
||||
ports:
|
||||
- "5000:5000" # Maps VM Port 5000 -> Container Port 5000
|
||||
- "5000:5000"
|
||||
environment:
|
||||
- SECRET_KEY=your_secret_key_here
|
||||
# Add database URLs here later
|
||||
- SECRET_KEY=${SECRET_KEY:-your_secret_key_here}
|
||||
- GOOGLE_API_KEY=${GOOGLE_API_KEY}
|
||||
- MONGO_URI=${MONGO_URI}
|
||||
- OLLAMA_HOST=${OLLAMA_HOST:-https://ollama.sirblob.co}
|
||||
- ATLAS_VECTORS=${ATLAS_VECTORS:-false}
|
||||
networks:
|
||||
- ethix-network
|
||||
|
||||
# (Optional) Add a database or cache here easily later
|
||||
# redis:
|
||||
# image: redis:alpine
|
||||
# The Frontend Server with API Proxy
|
||||
frontend:
|
||||
build: ./frontend
|
||||
container_name: svelte_frontend
|
||||
restart: always
|
||||
ports:
|
||||
- "3000:3000"
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
- PORT=3000
|
||||
- API_URL=http://api:5000
|
||||
depends_on:
|
||||
- api
|
||||
networks:
|
||||
- ethix-network
|
||||
|
||||
networks:
|
||||
ethix-network:
|
||||
driver: bridge
|
||||
|
||||
Reference in New Issue
Block a user