-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
46 lines (44 loc) · 1.02 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
# SAMPLE DOCKER COMPOSE
version: '3'
services:
mqtt:
container_name: mqtt
image: eclipse-mosquitto
restart: always
command: /usr/sbin/mosquitto -c /mosquitto-no-auth.conf
networks:
- yolo2mqtt
ports:
- "1883:1883" # Uncomment to expose MQTT server
yolo2mqtt:
container_name: yolo2mqtt
build:
dockerfile: ./Dockerfile
context: .
image: yolo2mqtt
# volumes:
# - /path/on/host/to/yolo2mqtt/config:/config
# - /path/on/host/to/yolo2mqtt/recordings:/media
environment:
- TZ=America/Chicago
# Uncomment below if using CUDA
# deploy:
# resources:
# reservations:
# devices:
# - driver: nvidia
# device_ids: ['0']
# capabilities: [gpu]
logging:
options:
max-size: "10m"
max-file: "3"
depends_on:
- mqtt
restart: always
# ports:
# - "8554:8554" # Uncomment to expose internal RTSP server
networks:
- yolo2mqtt
networks:
yolo2mqtt: