Last active
June 10, 2020 18:18
-
-
Save ivelin/3891a7b5d61a12d6a1b9f652b6d53dce to your computer and use it in GitHub Desktop.
Default docker compose configuration for Ambianic Edge
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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