diff options
author | clarkzjw <[email protected]> | 2023-02-24 00:49:12 -0800 |
---|---|---|
committer | clarkzjw <[email protected]> | 2023-02-24 00:49:12 -0800 |
commit | 391abe42adf3bf065d9543ada068b696b00efdcd (patch) | |
tree | ea85f216881bacb54f579cae9814e2f85aa1abe5 /contrib/docker-compose.yaml | |
parent | b097f3c13ddfa51551bce9ca9344c796e5cea9cb (diff) | |
download | swarm2fediverse-391abe42adf3bf065d9543ada068b696b00efdcd.tar.gz |
deploy: add krakend monitoring using influxdb and grafana
Diffstat (limited to 'contrib/docker-compose.yaml')
-rw-r--r-- | contrib/docker-compose.yaml | 27 |
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 | |||
21 | volumes: | 44 | volumes: |
22 | sqlite3: | 45 | sqlite3: |
46 | grafana: | ||
47 | influxdb: | ||