EVAL/docker-compose.yml

42 lines
934 B
YAML
Raw Normal View History

2023-03-18 06:05:02 +00:00
version: "3"
services:
2023-03-20 08:27:20 +00:00
eval:
container_name: eval
image: eval
2023-03-18 06:05:02 +00:00
build:
2023-04-03 04:45:50 +00:00
dockerfile: build/Dockerfile.cpu
context: .
volumes:
- ./static/:/app/static/
2023-04-03 12:40:58 +00:00
- ./playground/:/app/playground/
2023-04-03 04:45:50 +00:00
ports:
2023-04-03 07:43:34 +00:00
- "4500:4500"
2023-04-03 04:45:50 +00:00
- "7000:7000"
- "8000:8000" # eval port
env_file:
- .env
eval.gpu:
container_name: eval.gpu
image: eval.gpu
build:
dockerfile: build/Dockerfile.gpu
2023-03-18 06:05:02 +00:00
context: .
2023-03-18 08:37:02 +00:00
volumes: # if you want to decrease your model download time, use this.
- ../.cache/huggingface/:/root/.cache/huggingface/
- ./static/:/app/static/
2023-03-18 09:51:31 +00:00
ports:
2023-04-03 07:43:34 +00:00
- "4500:4500"
2023-04-03 04:45:50 +00:00
- "7000:7000"
- "8000:8000" # eval port
2023-03-18 06:05:02 +00:00
env_file:
- .env
deploy:
resources:
reservations:
devices:
- driver: nvidia
2023-04-03 04:45:50 +00:00
device_ids: ["1"] # You can choose which GPU to use
2023-03-18 06:05:02 +00:00
capabilities: [gpu]