camera-motion-detect/docker-compose.yml

68 lines
1.6 KiB
YAML
Raw Normal View History

2022-02-12 18:44:20 +00:00
version: '3.7'
# All keys here are for dev instance only, do not put prod keys here
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
- AWS_SECRET_ACCESS_KEY=2mSI6HdbJ8
- S3_ENDPOINT_URL=http://127.0.0.1:9000
- SOURCE_NAME=dummy
2022-02-12 18:44:20 +00:00
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
2022-02-20 07:50:49 +00:00
logging:
driver: none
2022-02-12 18:44:20 +00:00
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
2022-02-20 07:50:49 +00:00
logging:
driver: none
2022-02-12 18:44:20 +00:00
prometheus:
network_mode: host
image: prom/prometheus:latest
command:
- --config.file=/config/prometheus.yml
volumes:
- ./config:/config:ro
logging:
driver: none
2022-02-12 18:44:20 +00:00
minio:
restart: always
network_mode: host
image: bitnami/minio:latest
environment:
- MINIO_ACCESS_KEY=camdetect
2022-02-12 18:44:20 +00:00
- MINIO_SECRET_KEY=2mSI6HdbJ8
- MINIO_DEFAULT_BUCKETS=camdetect
2022-02-12 18:44:20 +00:00
- MINIO_CONSOLE_PORT_NUMBER=9001
logging:
driver: none
2022-02-12 18:44:20 +00:00
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"