| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- version: "3.8"
- services:
- backend:
- build:
- context: ./backend
- dockerfile: Dockerfile
- container_name: finetune-backend
- restart: unless-stopped
- ports:
- - "8010:8010"
- volumes:
- # 持久化数据和模型
- - ./data:/root/Fine-tuning/backend/data
- env_file:
- - ./backend/.env.docker
- environment:
- - BACKEND_HOST=0.0.0.0
- - BACKEND_PORT=8010
- - BACKEND_CORS_ORIGINS=http://localhost:3000
- # 沐曦 maca 环境变量
- - MACA_PATH=/opt/maca
- - LD_LIBRARY_PATH=/opt/maca/lib:/opt/maca/mxgpu_llvm/lib:/opt/maca/ompi/lib
- - MACA_CLANG_PATH=/opt/maca/mxgpu_llvm/bin
- devices:
- - /dev/mxcd:/dev/mxcd
- privileged: true
- networks:
- - finetune-net
- frontend:
- build:
- context: ./frontend
- dockerfile: Dockerfile
- args:
- VITE_API_BASE_URL: /api/v1
- VITE_WS_BASE_URL: /ws
- container_name: finetune-frontend
- restart: unless-stopped
- ports:
- - "3000:80"
- depends_on:
- - backend
- networks:
- - finetune-net
- networks:
- finetune-net:
- driver: bridge
|