aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclarkzjw <[email protected]>2023-02-24 00:49:12 -0800
committerclarkzjw <[email protected]>2023-02-24 00:49:12 -0800
commit391abe42adf3bf065d9543ada068b696b00efdcd (patch)
treeea85f216881bacb54f579cae9814e2f85aa1abe5 /contrib/docker-compose.yaml
parentb097f3c13ddfa51551bce9ca9344c796e5cea9cb (diff)
downloadswarm2fediverse-391abe42adf3bf065d9543ada068b696b00efdcd.tar.gz
deploy: add krakend monitoring using influxdb and grafana
Diffstat (limited to 'contrib/docker-compose.yaml')
-rw-r--r--contrib/docker-compose.yaml27
1 files changed, 26 insertions, 1 deletions
diff --git a/contrib/docker-compose.yaml b/contrib/docker-compose.yaml
index 3ca7981..8aeaff8 100644
--- a/contrib/docker-compose.yaml
+++ b/contrib/docker-compose.yaml
@@ -10,7 +10,7 @@ services:
10 - "8080:8080" 10 - "8080:8080"
11 11
12 krakend: 12 krakend:
13 image: "devopsfaith/krakend:latest" 13 image: "devopsfaith/krakend:2.2"
14 restart: always 14 restart: always
15 ports: 15 ports:
16 - "8081:8080" 16 - "8081:8080"
@@ -18,5 +18,30 @@ services:
18 volumes: 18 volumes:
19 - "./krakend.json:/etc/krakend/krakend.json" 19 - "./krakend.json:/etc/krakend/krakend.json"
20 20
21 influx:
22 image: influxdb:2.6.1
23 environment:
24 - "DOCKER_INFLUXDB_INIT_MODE=setup"
25 - "DOCKER_INFLUXDB_INIT_USERNAME=krakend"
26 - "DOCKER_INFLUXDB_INIT_PASSWORD=password"
27 - "DOCKER_INFLUXDB_INIT_ORG=my-org"
28 - "DOCKER_INFLUXDB_INIT_BUCKET=krakend"
29 - "DOCKER_INFLUXDB_INIT_RETENTION=1w"
30 - "DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=my-super-secret-auth-token"
31 ports:
32 - "8086:8086"
33 volumes:
34 - "./influx/initdb.sh:/docker-entrypoint-initdb.d/initdb.sh"
35
36 grafana:
37 image: "grafana/grafana:9.3.6"
38 restart: always
39 ports:
40 - "3000:3000"
41 volumes:
42 - grafana:/var/lib/grafana
43
21volumes: 44volumes:
22 sqlite3: 45 sqlite3:
46 grafana:
47 influxdb:
Powered by cgit v1.2.3 (git 2.41.0)