-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
33 lines (31 loc) · 1.23 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
33 lines (31 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# docker-compose.dev.yml
# Infrastructure-only compose for dev/integration environments.
# The app uses a SQLite database (src/db/schema.prisma provider="sqlite"), so there
# is no database infrastructure to stand up — the app manages its own file: DB.
# For full local development, use: npm run docker:up (docker-compose.local.yml)
version: '3.8'
services:
# Ollama is the only external service the app needs at runtime.
# Note: for full local dev, Ollama already runs via docker-compose.local.yml as
# sober-ollama-local on port 11434; this file exists to bring up just the LLM
# service for dev/integration scenarios that don't need the whole stack.
ollama:
image: ollama/ollama:latest
container_name: sober-ollama-dev
platform: linux/arm64
ports:
- "11434:11434"
volumes:
- ollama-dev-data:/root/.ollama
environment:
- OLLAMA_HOST=0.0.0.0
deploy:
resources:
limits:
memory: 4G
# Optional shared dev SQLite volume (mounted by the app via DATABASE_URL=file:
# when the backend is run against this compose network). With sqlite there is no
# DB container, so this only provisions the persisted volume if a shared dev DB
# is desired.
volumes:
ollama-dev-data: