-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
41 lines (39 loc) · 977 Bytes
/
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
services:
redisai:
container_name: redisai
image: redislabs/redisai:edge-gpu-bionic
environment:
- NVIDIA_VISIBLE_DEVICES=1
ports:
- 6379:6379
deploy:
resources:
reservations:
devices:
- driver: nvidia
capabilities: [gpu]
device_ids: ["1"]
fastapi:
container_name: fastapi
build: .
command: gunicorn app:app --workers 4 --worker-class uvicorn.workers.UvicornWorker --access-logfile - --log-level info --bind 0.0.0.0:80
ports:
- 80:80
env_file:
- .env
volumes:
# - .:/home/code
- ./src:/home/code/src
- ./models:/home/code/models
- ./scripts:/home/code/scripts
- ./served-models:/home/code/served-models
entrypoint:
- sh
- scripts/docker_entrypoint.sh
ngrok:
container_name: ngrok
image: ngrok/ngrok:latest
env_file:
- .env
network_mode: host
command: ["http", "80"]