-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
44 lines (41 loc) · 1.21 KB
/
docker-compose.dev.yml
File metadata and controls
44 lines (41 loc) · 1.21 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
services:
# 仅构建 DiAgent service 镜像,不启动;Runtime Manager 动态管理容器
diagent-build:
build:
context: ./DiAgent
dockerfile: docker/agent-service/Dockerfile
image: nana-os-diagent:latest
profiles: ["build"]
backend:
build: ./backend
command: uvicorn main:app --host 0.0.0.0 --port 8000 --reload
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./backend:/app
- ./workspace:/workspace
- nanaos-data:/data
environment:
- NANAOS_WORKSPACE_ROOT=/workspace
- NANAOS_HOST_WORKSPACE_ROOT=${PWD}/workspace
- NANAOS_DATABASE_URL=sqlite+aiosqlite:////data/nanaos.db
- NANAOS_DIAGENT_IMAGE=ghcr.io/hqit/diagent/agent-task:latest
- NANAOS_DIAGENT_SERVICE_IMAGE=nana-os-diagent:latest
ports:
- "8000:8000"
frontend:
build:
context: ./frontend
dockerfile: Dockerfile.dev
volumes:
- ./frontend/src:/app/src
- ./frontend/public:/app/public
- ./frontend/index.html:/app/index.html
- ./frontend/vite.config.ts:/app/vite.config.ts
environment:
- VITE_API_URL=http://backend:8000
ports:
- "3000:3000"
depends_on:
- backend
volumes:
nanaos-data: