Skip to content

Instantly share code, notes, and snippets.

@collabnix
Created October 29, 2020 04:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save collabnix/50dff83d4af12e1cbc42f79179f7efec to your computer and use it in GitHub Desktop.
Save collabnix/50dff83d4af12e1cbc42f79179f7efec to your computer and use it in GitHub Desktop.
stacky.yaml
version: '3'
services:
redis-commander:
build: https://github.com/collabnix/Redisai_edgeAnalytics.git
redisedge:
build: ./redisedge
ports:
- 6379:6379
init:
build: ./app
depends_on:
- redisedge
command: ['init.py', '--url', 'redis://redisedge:6379']
server:
build: ./app
depends_on:
- init
ports:
- 5000:5000
command: ['server.py', '--url', 'redis://redisedge:6379']
capture:
build: ./app
depends_on:
- init
# To capture from a webcam, uncomment the next lines
# devices:
# - /dev/video0:/dev/video0
# command: ['capture.py', '--url', 'redis://redisedge:6379']
command: ['capture.py', '--url', 'redis://redisedge:6379', 'data/walking.mp4']
prometheus:
build: ./prometheus
ports:
- 9090:9090
prometheus-redistimeseries-adapter:
image: redislabs/prometheus-redistimeseries-adapter:master
# TODO: freeze version
depends_on:
- prometheus
ports:
- 9201:9201
command: ['-redis-address', 'redisedge:6379', '-web.listen-address', '0.0.0.0:9201']
grafana:
image: ajeetraina/grafana-redisedge
environment:
- GF_INSTALL_PLUGINS=redis-datasource
depends_on:
- prometheus
ports:
- 3000:3000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment