-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
50 lines (47 loc) · 1.04 KB
/
docker-compose.yml
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
version: "3.5"
services:
modelscope:
container_name: modelscope
restart: always
build:
context: ./etc
command: ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8800"]
working_dir: /var/www
environment:
- TZ=PRC
volumes:
- ./mnt:/mnt
- ./www:/var/www
expose:
- 8800
ports:
- "8800:8800"
network_mode: "bridge"
extra_hosts:
- "dockerhost:172.17.0.1"
# modelscope-gpu:
# container_name: modelscope-gpu
# restart: always
# build:
# context: ./etc
# dockerfile: Dockerfile_GPU
# command: ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8800"]
# environment:
# - TZ=PRC
# volumes:
# - ./mnt:/mnt
# - ./www:/var/www
# expose:
# - 8800
# ports:
# - "8800:8800"
# network_mode: "bridge"
# extra_hosts:
# - "dockerhost:172.17.0.1"
# deploy:
# resources:
# reservations:
# devices:
# - driver: nvidia
# count: all
# capabilities: [gpu]