Docker Update and Fixes

This commit is contained in:
2026-01-25 17:36:15 +00:00
parent b7b718d4ca
commit 295be1ed8e
21 changed files with 886 additions and 289 deletions

View File

@@ -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