2023-12-30 23:15:22 -05:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
networks:
|
|
|
|
net:
|
|
|
|
external: false
|
|
|
|
|
|
|
|
services:
|
|
|
|
haproxy:
|
|
|
|
image: haproxy:lts
|
2024-01-02 21:30:21 -05:00
|
|
|
env_file:
|
|
|
|
- "variables.env"
|
2023-12-30 23:15:22 -05:00
|
|
|
ports:
|
|
|
|
- "80:80"
|
|
|
|
- "443:443"
|
|
|
|
volumes:
|
|
|
|
- "./data/certificates:/certificates"
|
|
|
|
- "./config/haproxy:/usr/local/etc/haproxy"
|
|
|
|
depends_on:
|
|
|
|
- "certbot"
|
|
|
|
- "restreamer"
|
|
|
|
- "scheduler"
|
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- net
|
|
|
|
labels:
|
|
|
|
- meta.role=haproxy
|
|
|
|
|
|
|
|
certbot:
|
|
|
|
image: "certbot/certbot"
|
|
|
|
hostname: certbot
|
|
|
|
volumes:
|
|
|
|
- "./data/certificates:/certificates"
|
|
|
|
- "./data/certbot/etc:/etc/letsencrypt"
|
|
|
|
- "./data/certbot/var:/var/lib/letsencrypt"
|
|
|
|
- "./logs/certbot:/var/log/letsencrypt"
|
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- net
|
|
|
|
labels:
|
|
|
|
- meta.role=certbot
|
|
|
|
#entrypoint: sh -c 'while true; do sleep 1; done'
|
|
|
|
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 15d & wait $${!}; done;'"
|
|
|
|
|
|
|
|
restreamer:
|
|
|
|
image: datarhei/restreamer:2.7.0
|
2023-12-31 09:32:41 -05:00
|
|
|
env_file:
|
|
|
|
- "variables.env"
|
2023-12-30 23:15:22 -05:00
|
|
|
ports:
|
|
|
|
- "6000:6000/udp"
|
|
|
|
volumes:
|
2024-01-04 16:23:50 -05:00
|
|
|
- "./data/restreamer/config:/core/config"
|
|
|
|
- "./data/restreamer/data:/core/data"
|
2023-12-30 23:15:22 -05:00
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- net
|
|
|
|
labels:
|
|
|
|
- meta.role=restreamer
|
|
|
|
|
|
|
|
scheduler:
|
|
|
|
depends_on:
|
|
|
|
- "restreamer"
|
|
|
|
build: ./src/scheduler
|
|
|
|
image: stream-scheduler:latest
|
2023-12-31 09:32:41 -05:00
|
|
|
env_file:
|
|
|
|
- "variables.env"
|
2024-01-05 08:29:29 -05:00
|
|
|
volumes:
|
|
|
|
- "./config/scheduler:/config"
|
2023-12-30 23:15:22 -05:00
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- net
|
|
|
|
labels:
|
|
|
|
- meta.role=scheduler
|
|
|
|
|
|
|
|
recorder:
|
|
|
|
depends_on:
|
|
|
|
- "restreamer"
|
|
|
|
image: bluenviron/mediamtx:latest-ffmpeg
|
|
|
|
environment:
|
|
|
|
- MTX_PROTOCOLS=tcp
|
2024-01-04 21:45:11 -05:00
|
|
|
ports:
|
|
|
|
- "127.0.0.1:8554:8554"
|
2023-12-30 23:15:22 -05:00
|
|
|
volumes:
|
2024-01-01 15:21:06 -05:00
|
|
|
- "./config/recorder/mediamtx.yml:/mediamtx.yml"
|
2024-01-02 17:37:32 -05:00
|
|
|
- "./data/recorder:/recordings"
|
2024-01-04 21:27:20 -05:00
|
|
|
# Set local fqdn to use internally in the restreamer
|
|
|
|
hostname: recorder.local
|
2023-12-30 23:15:22 -05:00
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- net
|
|
|
|
labels:
|
|
|
|
- meta.role=recorder
|
|
|
|
|
2024-01-02 17:37:32 -05:00
|
|
|
archive-api:
|
2024-01-04 16:23:50 -05:00
|
|
|
depends_on:
|
|
|
|
- "recorder"
|
2024-01-02 17:37:32 -05:00
|
|
|
image: xemle/home-gallery-api-server
|
|
|
|
environment:
|
|
|
|
# TensorflowJS backends
|
|
|
|
# - cpu: slowest and best support
|
|
|
|
# - wasm: good perfromance for arm64 and amd64 platforms
|
|
|
|
# - node: best performance on amd64 platform
|
|
|
|
#- BACKEND=cpu
|
|
|
|
- BACKEND=wasm
|
|
|
|
#- BACKEND=node
|
2024-01-04 07:56:49 -05:00
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- net
|
|
|
|
labels:
|
|
|
|
- meta.role=archive-api
|
2024-01-02 17:37:32 -05:00
|
|
|
|
2023-12-30 23:15:22 -05:00
|
|
|
archive:
|
|
|
|
depends_on:
|
|
|
|
- "recorder"
|
2024-01-04 07:20:53 -05:00
|
|
|
image: xemle/home-gallery:1.14.6
|
2024-01-02 17:37:32 -05:00
|
|
|
environment:
|
|
|
|
- GALLERY_API_SERVER=http://archive-api:3000
|
2024-01-02 21:42:43 -05:00
|
|
|
- GALLERY_API_SERVER_CONCURRENT=5 # for SoC devices like Rasperry Pi. Use 5 otherwise
|
|
|
|
- GALLERY_API_SERVER_TIMEOUT=30 # for SoC devices like Rasperry Pi. Use 30 otherwise
|
2024-01-02 17:37:32 -05:00
|
|
|
#- GALLERY_USE_NATIVE=ffprobe,ffmpeg,vipsthumbnail # On issues with sharp resizer
|
|
|
|
- GALLERY_OPEN_BROWSER=false
|
|
|
|
# Use polling for safety of possible network mounts. Try 0 to use inotify via fs.watch
|
|
|
|
- GALLERY_WATCH_POLL_INTERVAL=300
|
2023-12-30 23:15:22 -05:00
|
|
|
volumes:
|
2024-01-02 17:37:32 -05:00
|
|
|
- "./config/archive/gallery.config.yml:/data/config/gallery.config.yml"
|
|
|
|
- "./data/archive:/data"
|
|
|
|
- "./data/recorder/vod:/data/vod:ro"
|
|
|
|
#user: "${CURRENT_USER}"
|
|
|
|
entrypoint: ['node', '/app/gallery.js']
|
|
|
|
command: ['run', 'server']
|
2023-12-30 23:15:22 -05:00
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- net
|
|
|
|
labels:
|
|
|
|
- meta.role=archive
|
2024-01-02 17:37:32 -05:00
|
|
|
|