-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
58 lines (54 loc) · 1.44 KB
/
docker-compose.yml
File metadata and controls
58 lines (54 loc) · 1.44 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
services:
# Backend API
server:
build: ./server
# Once published to Docker Hub, replace with:
# image: rajpratham1/viru-server:latest
ports:
- "5000:5000"
environment:
- PORT=5000
- DATABASE_URL=file:./dev.db
- JWT_SECRET=${JWT_SECRET:-viru_dev_secret}
# For Ollama running on host machine:
- AI_MODEL_URL=http://host.docker.internal:11434
- WORKSPACE_ROOT=/app/workspace
volumes:
- viru_brain:/app/brain
- viru_db:/app/prisma
- viru_workspace:/app/workspace
restart: unless-stopped
# Main Client (The Neural Interface)
client:
build: ./client
# Once published to Docker Hub, replace with:
# image: rajpratham1/viru-client:latest
ports:
- "5173:80"
depends_on:
- server
restart: unless-stopped
# Admin Portal (Overwatch)
admin:
build: ./admin
# Once published to Docker Hub, replace with:
# image: rajpratham1/viru-admin:latest
ports:
- "5174:80"
depends_on:
- server
restart: unless-stopped
volumes:
viru_brain:
viru_db:
viru_workspace:
# Usage (Development):
# 1. docker-compose up --build -d
# 2. Access Client at http://localhost:5173
# 3. Access Admin at http://localhost:5174
# 4. Access API at http://localhost:5000
#
# Usage (Production - after publishing to Docker Hub):
# 1. Uncomment the 'image:' lines and comment out 'build:' lines
# 2. docker-compose pull
# 3. docker-compose up -d