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
|
2022-03-06 06:25:54 +00:00
|
|
|
x-common: &common
|
|
|
|
AWS_ACCESS_KEY_ID: camdetect
|
2022-07-10 10:15:54 +00:00
|
|
|
MINIO_ROOT_USER: camdetect
|
2022-03-06 06:25:54 +00:00
|
|
|
AWS_SECRET_ACCESS_KEY: 2mSI6HdbJ8
|
2022-07-10 10:15:54 +00:00
|
|
|
MINIO_ROOT_PASSWORD: 2mSI6HdbJ8
|
2022-03-06 06:25:54 +00:00
|
|
|
ME_CONFIG_MONGODB_ENABLE_ADMIN: 'true'
|
|
|
|
ME_CONFIG_MONGODB_SERVER: '127.0.0.1'
|
|
|
|
ME_CONFIG_MONGODB_AUTH_DATABASE: admin
|
|
|
|
MINIO_DEFAULT_BUCKETS: camdetect
|
|
|
|
MINIO_URI: 'http://camdetect:2mSI6HdbJ8@127.0.0.1:9000/camdetect'
|
|
|
|
S3_ENDPOINT_URL: http://127.0.0.1:9000
|
|
|
|
MINIO_CONSOLE_PORT_NUMBER: 9001
|
|
|
|
MJPEGSTREAMER_CREDENTIALS: user:123456
|
|
|
|
SOURCE_NAME: dummy
|
2022-02-12 18:44:20 +00:00
|
|
|
|
|
|
|
services:
|
|
|
|
camdetect:
|
|
|
|
restart: always
|
|
|
|
network_mode: host
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
entrypoint: /app/camdetect.py
|
|
|
|
command: http://user:123456@127.0.0.1:8080?action=stream
|
2022-03-06 06:25:54 +00:00
|
|
|
environment: *common
|
2022-02-12 18:44:20 +00:00
|
|
|
|
|
|
|
mongoexpress:
|
|
|
|
restart: always
|
|
|
|
image: mongo-express
|
|
|
|
network_mode: host
|
2022-03-06 06:25:54 +00:00
|
|
|
environment: *common
|
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
|
2022-02-25 21:00:05 +00:00
|
|
|
logging:
|
|
|
|
driver: none
|
2022-02-12 18:44:20 +00:00
|
|
|
|
|
|
|
minio:
|
|
|
|
restart: always
|
|
|
|
network_mode: host
|
|
|
|
image: bitnami/minio:latest
|
2022-03-06 06:25:54 +00:00
|
|
|
environment: *common
|
2022-02-25 21:00:05 +00:00
|
|
|
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
|
2022-03-06 06:25:54 +00:00
|
|
|
command: -i "/usr/lib64/input_uvc.so -y -d /dev/video0 -r 1280x720 -f 5" -o "output_http.so -c user:123456"
|
|
|
|
|
|
|
|
log-viewer-backend:
|
|
|
|
restart: always
|
|
|
|
network_mode: host
|
|
|
|
build:
|
|
|
|
context: ./log-viewer/backend
|
|
|
|
environment: *common
|
|
|
|
|
|
|
|
log-viewer-frontend:
|
|
|
|
restart: always
|
|
|
|
network_mode: host
|
|
|
|
build:
|
|
|
|
context: ./log-viewer/frontend
|