Skip to content

Instantly share code, notes, and snippets.

@ivelin
Last active June 10, 2020 18:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ivelin/3891a7b5d61a12d6a1b9f652b6d53dce to your computer and use it in GitHub Desktop.
Save ivelin/3891a7b5d61a12d6a1b9f652b6d53dce to your computer and use it in GitHub Desktop.
Default docker compose configuration for Ambianic Edge
version: "3.7"
services:
ambianic-edge:
container_name: ambianic-edge
restart: unless-stopped
privileged: true
image: ambianic/ambianic-edge:latest
network_mode: "host"
volumes:
- /dev/bus/usb:/dev/bus/usb
# Ambianic Edge will look for its config.yaml file in the directory specified below
# It will also store logs and data files under the same directory
- /opt/ambianic-edge.prod:/workspace
restart: on-failure
healthcheck:
test: ["CMD", "curl", "-sI", "http://127.0.0.1:8778/"]
interval: 300s
timeout: 3s
retries: 10
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "10"
# use watchtower to automatically and gracefully update ambianic-edge docker images
watchtower:
image: containrrr/watchtower
volumes:
- /var/run/docker.sock:/var/run/docker.sock
# with --cleanup watchtower will remove old unused docker images
command: --cleanup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment