From af610ab49194f12783fdfb2cc676c4877b22ed7c Mon Sep 17 00:00:00 2001 From: clarkzjw Date: Thu, 23 Feb 2023 22:24:05 -0800 Subject: deploy: add Dockerfile and docker-compose.yaml --- contrib/docker-compose.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 contrib/docker-compose.yaml (limited to 'contrib/docker-compose.yaml') diff --git a/contrib/docker-compose.yaml b/contrib/docker-compose.yaml new file mode 100644 index 0000000..7ba8c2d --- /dev/null +++ b/contrib/docker-compose.yaml @@ -0,0 +1,13 @@ +version: '3' +services: + checkin.bot: + image: "clarkzjw/checkin.bot:latest" + restart: always + volumes: + - "./config.ini:/usr/src/app/config.ini" + - sqlite3:/usr/src/app/database/ + ports: + - "8080:8080" + +volumes: + sqlite3: -- cgit v1.2.3 From b097f3c13ddfa51551bce9ca9344c796e5cea9cb Mon Sep 17 00:00:00 2001 From: clarkzjw Date: Thu, 23 Feb 2023 23:42:50 -0800 Subject: deploy: add krakend api gateway --- contrib/docker-compose.yaml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'contrib/docker-compose.yaml') diff --git a/contrib/docker-compose.yaml b/contrib/docker-compose.yaml index 7ba8c2d..3ca7981 100644 --- a/contrib/docker-compose.yaml +++ b/contrib/docker-compose.yaml @@ -1,6 +1,6 @@ version: '3' services: - checkin.bot: + checkinbot: image: "clarkzjw/checkin.bot:latest" restart: always volumes: @@ -9,5 +9,14 @@ services: ports: - "8080:8080" + krakend: + image: "devopsfaith/krakend:latest" + restart: always + ports: + - "8081:8080" + - "9091:9091" + volumes: + - "./krakend.json:/etc/krakend/krakend.json" + volumes: sqlite3: -- cgit v1.2.3 From 391abe42adf3bf065d9543ada068b696b00efdcd Mon Sep 17 00:00:00 2001 From: clarkzjw Date: Fri, 24 Feb 2023 00:49:12 -0800 Subject: deploy: add krakend monitoring using influxdb and grafana --- contrib/docker-compose.yaml | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) (limited to 'contrib/docker-compose.yaml') 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: - "8080:8080" krakend: - image: "devopsfaith/krakend:latest" + image: "devopsfaith/krakend:2.2" restart: always ports: - "8081:8080" @@ -18,5 +18,30 @@ services: volumes: - "./krakend.json:/etc/krakend/krakend.json" + influx: + image: influxdb:2.6.1 + environment: + - "DOCKER_INFLUXDB_INIT_MODE=setup" + - "DOCKER_INFLUXDB_INIT_USERNAME=krakend" + - "DOCKER_INFLUXDB_INIT_PASSWORD=password" + - "DOCKER_INFLUXDB_INIT_ORG=my-org" + - "DOCKER_INFLUXDB_INIT_BUCKET=krakend" + - "DOCKER_INFLUXDB_INIT_RETENTION=1w" + - "DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=my-super-secret-auth-token" + ports: + - "8086:8086" + volumes: + - "./influx/initdb.sh:/docker-entrypoint-initdb.d/initdb.sh" + + grafana: + image: "grafana/grafana:9.3.6" + restart: always + ports: + - "3000:3000" + volumes: + - grafana:/var/lib/grafana + volumes: sqlite3: + grafana: + influxdb: -- cgit v1.2.3