-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
50 lines (46 loc) · 1.16 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.8'
services:
inference:
depends_on:
- kafka
build:
dockerfile: inference.Dockerfile
context: .
image: inference
devices:
- /dev/video0:/dev/video0
deploy:
resources:
reservations:
devices:
- driver: nvidia
device_ids: [ '0' ]
capabilities: [ gpu ]
volumes:
- "./.build/capture:/tmp/capture"
- "./src:/application/src"
container_name: inference
ports:
- "127.0.0.1:5001:80"
restart: always
kafka:
container_name: kafka
restart: unless-stopped
build:
dockerfile: kafka.Dockerfile
context: .
ports:
- "9092:9092"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
- "./.build/kafka-server.properties:/opt/kafka/config/server.properties"
- "./.build/zookeeper.properties:/opt/kafka/config/zookeeper.properties"
kafkacat:
depends_on:
- kafka
container_name: kafkacat
restart: unless-stopped
image: confluentinc/cp-kafkacat:latest
command: bash -c "kafkacat -b kafka:9092 -t test -C"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"