42 lines
906 B
YAML
42 lines
906 B
YAML
services:
|
|
app:
|
|
build: ./app
|
|
working_dir: /app
|
|
ports:
|
|
- "${APP_PORT:-3000}:3000"
|
|
environment:
|
|
- APP_PORT=3000
|
|
- NODE_ENV=${NODE_ENV:-development}
|
|
- DB_PATH=/var/lib/charactergarden/app.db
|
|
- OLLAMA_URL=${OLLAMA_URL:-http://ollama:11434}
|
|
volumes:
|
|
- sqlite_data:/var/lib/charactergarden
|
|
- ./app/src:/app/src
|
|
|
|
frontend:
|
|
build: ./frontend
|
|
working_dir: /frontend
|
|
ports:
|
|
- "${FRONTEND_PORT:-5173}:5173"
|
|
environment:
|
|
- CHOKIDAR_USEPOLLING=true
|
|
volumes:
|
|
- ./frontend/src:/frontend/src
|
|
- ./frontend/index.html:/frontend/index.html
|
|
- ./frontend/vite.config.ts:/frontend/vite.config.ts
|
|
depends_on:
|
|
- app
|
|
|
|
ollama:
|
|
image: ollama/ollama:latest
|
|
ports:
|
|
- "11434:11434"
|
|
volumes:
|
|
- ollama_data:/root/.ollama
|
|
profiles:
|
|
- llm
|
|
|
|
volumes:
|
|
ollama_data:
|
|
sqlite_data:
|