59 lines
1.5 KiB
YAML
59 lines
1.5 KiB
YAML
version: '3.7'
|
|
|
|
# All keys here are for dev instance only, do not put prod keys here
|
|
# To override and use inventory from prod use .env file
|
|
|
|
services:
|
|
camdetect:
|
|
restart: always
|
|
network_mode: host
|
|
build:
|
|
context: .
|
|
entrypoint: /app/camdetect.py
|
|
command: http://user:123456@127.0.0.1:8080?action=stream
|
|
environment:
|
|
- MJPEGSTREAMER_CREDENTIALS=user:123456
|
|
env_file: .env
|
|
|
|
mongoexpress:
|
|
restart: always
|
|
image: mongo-express
|
|
network_mode: host
|
|
environment:
|
|
- ME_CONFIG_MONGODB_ENABLE_ADMIN=true
|
|
- ME_CONFIG_MONGODB_SERVER=127.0.0.1
|
|
- ME_CONFIG_MONGODB_AUTH_DATABASE=admin
|
|
|
|
mongo:
|
|
network_mode: host
|
|
image: mongo:latest
|
|
volumes:
|
|
- ./mongo-init.sh:/docker-entrypoint-initdb.d/mongo-init.sh:ro
|
|
command: mongod --replSet rs0 --bind_ip 127.0.0.1
|
|
|
|
prometheus:
|
|
network_mode: host
|
|
image: prom/prometheus:latest
|
|
command:
|
|
- --config.file=/config/prometheus.yml
|
|
volumes:
|
|
- ./config:/config:ro
|
|
|
|
minio:
|
|
restart: always
|
|
network_mode: host
|
|
image: bitnami/minio:latest
|
|
environment:
|
|
- MINIO_ACCESS_KEY=kspace-mugshot
|
|
- MINIO_SECRET_KEY=2mSI6HdbJ8
|
|
- MINIO_DEFAULT_BUCKETS=kspace-mugshot:download
|
|
- MINIO_CONSOLE_PORT_NUMBER=9001
|
|
|
|
mjpg-streamer:
|
|
network_mode: host
|
|
restart: always
|
|
image: kvaps/mjpg-streamer
|
|
devices:
|
|
- /dev/video0
|
|
command: -i "/usr/lib64/input_uvc.so -y -d /dev/video0 -r 1280x720 -f 30" -o "output_http.so -c user:123456"
|