-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (48 loc) · 1.08 KB
/
docker-compose.yml
File metadata and controls
51 lines (48 loc) · 1.08 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: '2.3'
services:
local_redis:
build: redis_data/
container_name: local_redis
ports:
- "6379:6379"
volumes:
- ./redis_data/:/data
networks:
- deploy_network
local_streaming_fastapi:
image: directai/directai:server
working_dir: /obfuscated_server
command: /bin/bash ./run.sh
ports:
- 8000:8000
networks:
- deploy_network
container_name: local_streaming_fastapi
environment:
- PYTHONUNBUFFERED=1
- NVIDIA_VISIBLE_DEVICES=all
- HF_HOME=/.cache/huggingface
runtime: nvidia
env_file:
- directai_fastapi/.env
volumes:
- ./logs:/logs
shm_size: 10240M # because Ray complains if it's less
depends_on:
- rtsp_server
- local_redis
extra_hosts:
- "host.docker.internal:host-gateway"
rtsp_server:
image: bluenviron/mediamtx:latest
container_name: local_streaming_rtsp_server
networks:
- deploy_network
ports:
- 8554:8554
- 1935:1935
- 8888:8888
- 8889:8889
networks:
deploy_network:
driver: bridge