57 lines
1.4 KiB
YAML
57 lines
1.4 KiB
YAML
version: "3"
|
|
|
|
services:
|
|
cctv_recorder_cam1:
|
|
container_name: cctv-recorder-cam1
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile_recorder
|
|
environment:
|
|
- TZ=Europe/Brussels
|
|
- "NP_CCTV_URL=rtsp://user:password@address:554/sub-path"
|
|
volumes:
|
|
- ./recordings/cam1:/data
|
|
restart: unless-stopped
|
|
|
|
cctv_recorder_cam2:
|
|
container_name: cctv-recorder-cam2
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile_recorder
|
|
environment:
|
|
- TZ=Europe/Brussels
|
|
- "NP_CCTV_URL=rtsp://user:password@address:554"
|
|
volumes:
|
|
- ./recordings/cam2:/data
|
|
restart: unless-stopped
|
|
|
|
cctv_cleaner:
|
|
container_name: cctv-cleaner
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile_cleaner
|
|
environment:
|
|
- TZ=Europe/Brussels
|
|
- "NP_MAX_FILE_AGE_HOURS=72"
|
|
volumes:
|
|
- ./recordings:/data
|
|
- ./cleaner.py:/app/app.py:ro
|
|
restart: unless-stopped
|
|
|
|
cctv_web:
|
|
container_name: cctv-web
|
|
image: php:apache
|
|
ports:
|
|
- 26880:80
|
|
environment:
|
|
- "NP_CAM_cam1=Camera #1"
|
|
- "NP_CAM_cam2=Camera #2"
|
|
- "NP_TITLE=NibblePoker's Mini CCTV NVR"
|
|
- "NP_FOOTER=Made by <i>BOZET Herwin</i>"
|
|
- TZ=Europe/Brussels
|
|
volumes:
|
|
- ./htdocs:/var/www/html # Cannot be "ro" since the recordings are mounted into it.
|
|
- ./apache2.conf:/etc/apache2/apache2.conf:ro
|
|
- ./recordings:/var/www/html/data:ro
|
|
restart: unless-stopped
|