From 4029b6b3c9b6c5d1f3ec8185ae05259ba8d375de Mon Sep 17 00:00:00 2001 From: Haris Razis Date: Fri, 18 Dec 2020 12:44:15 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9E=95=20Add=20grafana=20to=20docker-compose?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose.yml | 44 +++++++++++++++++++++++--------------------- 1 file changed, 23 insertions(+), 21 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index a3878b9..a9a1bf9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,36 +1,30 @@ version: "3.9" services: redis: - image: "redis" + image: redis:latest container_name: "redis" - deploy: - restart_policy: - condition: on-failure - delay: 5s - max_attempts: 3 - window: 120s networks: - backend influx: - image: "influxdb" + image: influxdb:latest container_name: "influx" - deploy: - restart_policy: - condition: on-failure - delay: 5s - max_attempts: 3 - window: 120s + environment: + - INFLUXDB_DB=db0 networks: - backend + - monitor + grafana: + image: grafana/grafana:latest + container_name: "grafana" + ports: + - "3000:3000" + networks: + - monitor + depends_on: + - influx mongo: - image: "mongo" + image: mongo:latest container_name: "mongo" - deploy: - restart_policy: - condition: on-failure - delay: 5s - max_attempts: 3 - window: 120s networks: - backend backend: @@ -66,6 +60,14 @@ services: - frontend depends_on: - backend + test_client: + build: ./client + container_name: "test_client" + networks: + - backend + depends_on: + - backend networks: backend: frontend: + monitor: