-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (40 loc) · 1.11 KB
/
docker-compose.yml
File metadata and controls
41 lines (40 loc) · 1.11 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
services:
mqtt:
image: eclipse-mosquitto:2
container_name: printguard-mqtt
restart: unless-stopped
ports:
- "1883:1883"
volumes:
- ./docker/mosquitto/mosquitto.conf:/mosquitto/config/mosquitto.conf:ro
- ./docker/mosquitto/passwordfile:/mosquitto/config/passwordfile:ro
printguard:
build:
context: .
dockerfile: Dockerfile
container_name: printguard
restart: unless-stopped
depends_on:
- mqtt
read_only: true
cap_drop:
- ALL
security_opt:
- no-new-privileges:true
tmpfs:
- /tmp
environment:
MJPEG_URL: "http://printer.local:8080/?action=stream"
MQTT_HOST: "mqtt"
MQTT_PORT: "1883"
MQTT_USERNAME: "printguard-dev"
MQTT_PASSWORD: "printguard-dev-password"
MQTT_TOPIC_PREFIX: "printguard"
MQTT_DISCOVERY_PREFIX: "homeassistant"
DEVICE_ID: "printguard-mjpeg-1"
DEVICE_NAME: "PrintGuard MJPEG"
DETECTION_INTERVAL_MS: "1000"
MQTT_CONNECT_TIMEOUT_SECONDS: "30"
STREAM_RETRY_DELAY_MS: "5000"
STREAM_READ_FAILURE_LIMIT: "5"
MQTT_RETRY_DELAY_MS: "5000"