add models path

This commit is contained in:
arslantu 2024-04-06 10:13:44 +08:00
parent ccfb462fb8
commit 16a377ac12
2 changed files with 2 additions and 2 deletions

View File

@ -1,13 +1,13 @@
version: "3" version: "3"
services: services:
api_server: api_server-1:
build: . build: .
restart: unless-stopped restart: unless-stopped
network_mode: host network_mode: host
volumes: volumes:
- ./start.sh:/workspace/start.sh - ./start.sh:/workspace/start.sh
# change here to mount all your models # change here to mount all your models
- models_path:/workspace/models # "models" contain multiple models - ./models:/workspace/models # "models" contain multiple models
environment: environment:
# change "main" to your model name # change "main" to your model name
- MODEL_PATH=/workspace/models/main - MODEL_PATH=/workspace/models/main

0
docker/models/.gitkeep Normal file
View File