version: "3.8" services: gateway: image: maivin/webapp-gateway:1.0.3 restart: on-failure ports: - "80:80" links: - webui - cameraserver - visionstream - results webui: image: maivin/webapp-ui:1.0.5 restart: on-failure modelrunner: image: deepview/rt:2.4.44-imx8 restart: on-failure command: -H 10818 -m /var/lib/modelrunner/default.rtm -w volumes: - /var/lib/modelrunner:/var/lib/modelrunner depends_on: - model camerasource: image: maivin/webapp-camerasource:1.0.1 restart: on-failure environment: - WIDTH=640 - HEIGHT=480 - FRAMERATE=30 volumes: - /tmp:/tmp devices: - /dev/video0:/dev/video0 cameraserver: image: maivin/webapp-cameraserver:1.1.1 restart: on-failure depends_on: - camerasource devices: - /dev/galcore:/dev/galcore volumes: - /tmp:/tmp visionstream: image: maivin/webapp-detection:1.0.7-headpose restart: on-failure depends_on: - camerasource - model command: -m /var/lib/modelrunner/default.rtm environment: - GST_DEBUG=*:1 devices: - /dev/galcore:/dev/galcore volumes: - /tmp:/tmp - /var/lib/modelrunner:/var/lib/modelrunner results: image: maivin/webapp-results:1.0.1 restart: on-failure depends_on: - visionstream volumes: - /tmp:/tmp rs485: image: maivin/headpose-rs485:1.0.0 restart: on-failure devices: - /dev/ttymxc0:/dev/ttymxc0 volumes: - /tmp:/tmp depends_on: - visionstream command: --port /dev/ttymxc0 model: image: maivin/headpose-model:1.0.0 volumes: - /var/lib/modelrunner:/var/lib/modelrunner command: /var/lib/modelrunner/default.rtm # Watchdog should only be enabled when the application is expected to always # be running. During development we do not want to enable the watchdog since # containers going down (such as docker-compose down) will cause the system # to reboot. # watchdog: # image: maivin/webapp-watchdog:1.0.0 # restart: on-failure # depends_on: # - camerasource # devices: # - /dev/watchdog:/dev/watchdog # volumes: # - /tmp:/tmp # - /var:/var