From d47c4ea99ad06c11d910223de8370058649761b9 Mon Sep 17 00:00:00 2001 From: Jason Kulatunga Date: Thu, 12 May 2022 08:55:47 -0700 Subject: [PATCH] added example hub/spoke docker-compose file. --- docker/example.hubspoke.docker-compose.yml | 48 ++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 docker/example.hubspoke.docker-compose.yml diff --git a/docker/example.hubspoke.docker-compose.yml b/docker/example.hubspoke.docker-compose.yml new file mode 100644 index 0000000..84c79e5 --- /dev/null +++ b/docker/example.hubspoke.docker-compose.yml @@ -0,0 +1,48 @@ +version: '2.4' + +services: + influxdb: + image: influxdb:2.2 + ports: + - '8086:8086' + volumes: + - './influxdb:/var/lib/influxdb2' + healthcheck: + test: ["CMD", "curl", "-f", "http://localhost:8086/health"] + interval: 5s + timeout: 10s + retries: 20 + + + web: + image: 'ghcr.io/analogj/scrutiny:master-web' + ports: + - '8080:8080' + volumes: + - './config:/opt/scrutiny/config' + environment: + SCRUTINY_WEB_INFLUXDB_HOST: 'influxdb' + depends_on: + influxdb: + condition: service_healthy + healthcheck: + test: ["CMD", "curl", "-f", "http://localhost:8080/api/health"] + interval: 5s + timeout: 10s + retries: 20 + start_period: 10s + + collector: + image: 'ghcr.io/analogj/scrutiny:master-collector' + cap_add: + - SYS_RAWIO + volumes: + - '/run/udev:/run/udev:ro' + environment: + COLLECTOR_API_ENDPOINT: 'http://web:8080' + depends_on: + web: + condition: service_healthy +# devices: +# - "/dev/sda" +# - "/dev/sdb" \ No newline at end of file