forked from lanrat/hass-screenshot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
55 lines (54 loc) · 1.49 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
51
52
53
54
55
version: "3.8"
services:
hass-screenshot:
container_name: hass-screenshot
image: jicka/hass-screenshot-jicka
build:
context: .
dockerfile: Dockerfile
deploy:
resources:
limits:
memory: 1G
environment:
- TZ=Europe/Berlin
- HA_BASE_URL=https://HOME_ASSISTANT_URL:8123
- HA_ACCESS_TOKEN=HOME_ASSISTANT_TOKEN
- LANGUAGE=en
- MQTT_SERVER=MQTT_SERVER_IP
- MQTT_USERNAME=MQTT_USER
- MQTT_PASSWORD=MQTT_USER_PASSWORD
- MQTT_PROTOCOL=mqtt
- REAL_TIME=false
- CRON_JOB=*/5 * * * *
- RENDERING_DELAY=2
- COLOR_MODE=GrayScale
- USE_IMAGE_MAGICK=true
# image 1
- HA_SCREENSHOT_URL=/inkplate-dashboard/0?kiosk
- RENDERING_SCREEN_HEIGHT=825
- RENDERING_SCREEN_WIDTH=1200
- GRAYSCALE_DEPTH=3
# image 2
# - HA_SCREENSHOT_URL_2=/inkplate-dashboard/1?kiosk
# - RENDERING_SCREEN_HEIGHT_2=825
# - RENDERING_SCREEN_WIDTH_2=1200
# - GRAYSCALE_DEPTH_2=3
# image 3
# - HA_SCREENSHOT_URL_3=/inkplate-dashboard/2?kiosk
# - RENDERING_SCREEN_HEIGHT_3=825
# - RENDERING_SCREEN_WIDTH_3=1200
# - GRAYSCALE_DEPTH_3=3
restart: unless-stopped
ports:
- 5000:5000
healthcheck:
test: "wget --no-verbose --tries=1 --spider http://localhost:5000/ || exit 1"
interval: 900s
timeout: 10s
retries: 3
start_period: 120s
logging:
driver: "json-file"
options:
max-size: "3m"