-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
51 lines (48 loc) · 1.17 KB
/
docker-compose.yaml
File metadata and controls
51 lines (48 loc) · 1.17 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
version: "3.8"
services:
sam-client:
image: ghcr.io/mrsyee/sam-remove-background-client:latest
container_name: sam-remove-background-client
build:
context: .
dockerfile: Dockerfiles/client.Dockerfile
ports:
- 7860:7860
environment:
- API_SERVER_URL=http://sam-server:8888
networks:
- sam-network
sam-server:
image: ghcr.io/mrsyee/sam-remove-background-server:latest
container_name: sam-remove-background-server
build:
context: .
dockerfile: Dockerfiles/server.Dockerfile
volumes:
- ./checkpoint:/app/checkpoint
ports:
- 8888:8888
environment:
- INFERENCE_SERVER_URL=triton-server:8001
networks:
- sam-network
triton-server:
image: nvcr.io/nvidia/tritonserver:23.04-py3
container_name: sam-triton
command: tritonserver --model-repository=/models
volumes:
- ./model_repository:/models
ports:
- 8000:8000
- 8001:8001
deploy:
resources:
reservations:
devices:
- driver: nvidia
device_ids: ['0']
capabilities: [gpu]
networks:
- sam-network
networks:
sam-network: