Skip to content

Commit

Permalink
feat: introduce greptimedb-common.yml and refactor docker compose con…
Browse files Browse the repository at this point in the history
…figs (#70)
  • Loading branch information
killme2008 authored Jan 7, 2025
1 parent 44254f2 commit 705c816
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 99 deletions.
18 changes: 2 additions & 16 deletions ev-open-telemetry/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,6 @@
include:
- ../greptimedb-common.yml
services:
greptimedb:
image: docker.io/greptime/greptimedb:v0.10.0-nightly-20241007
command: standalone start --http-addr=0.0.0.0:4000 --rpc-addr=0.0.0.0:4001 --mysql-addr=0.0.0.0:4002 --postgres-addr 0.0.0.0:4003
ports:
- 4000:4000
- 4001:4001
- 4002:4002
- 4003:4003
networks:
- demo-network
healthcheck:
test: ["CMD", "curl", "-f", "http://127.0.0.1:4000/health"]
interval: 3s
timeout: 3s
retries: 5

ev_observer:
build:
context: ./ev_observer
Expand Down
20 changes: 2 additions & 18 deletions flight-data-ingester/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,6 @@
include:
- ../greptimedb-common.yml
services:
greptimedb:
image: docker.io/greptime/greptimedb:v0.10.0-nightly-20240930
command: standalone start --http-addr=0.0.0.0:4000 --rpc-addr=0.0.0.0:4001 --mysql-addr=0.0.0.0:4002 --postgres-addr 0.0.0.0:4003
ports:
- 4000:4000
- 4001:4001
- 4002:4002
- 4003:4003
networks:
- demo-network
healthcheck:
test: ["CMD", "curl", "-f", "http://127.0.0.1:4000/health"]
interval: 3s
timeout: 3s
retries: 5
volumes:
- /tmp/greptimedb-demo:/tmp/greptimedb

ingester:
build:
context: ./ingester
Expand Down
20 changes: 3 additions & 17 deletions grafana-alloy/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
include:
- ../greptimedb-common.yml
services:
envsubst:
image: docker.io/widerplan/envsubst
Expand All @@ -10,24 +12,8 @@ services:
required: false
init: true

greptimedb:
image: docker.io/greptime/greptimedb:v0.11.0-nightly-20241125
command: standalone start --http-addr=0.0.0.0:4000 --rpc-addr=0.0.0.0:4001 --mysql-addr=0.0.0.0:4002 --postgres-addr 0.0.0.0:4003
ports:
- 4000:4000
- 4001:4001
- 4002:4002
- 4003:4003
networks:
- demo-network
healthcheck:
test: [ "CMD", "curl", "-f", "http://127.0.0.1:4000/health" ]
interval: 3s
timeout: 3s
retries: 5

grafana:
image: docker.io/grafana/grafana:11.1.0
image: docker.io/grafana/grafana:11.2.0
ports:
- 3000:3000
networks:
Expand Down
16 changes: 16 additions & 0 deletions greptimedb-common.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
services:
greptimedb:
image: docker.io/greptime/greptimedb:v0.11.2
command: standalone start --http-addr=0.0.0.0:4000 --rpc-addr=0.0.0.0:4001 --mysql-addr=0.0.0.0:4002 --postgres-addr 0.0.0.0:4003
ports:
- 4000:4000
- 4001:4001
- 4002:4002
- 4003:4003
networks:
- demo-network
healthcheck:
test: [ "CMD", "curl", "-f", "http://127.0.0.1:4000/health" ]
interval: 3s
timeout: 3s
retries: 5
18 changes: 2 additions & 16 deletions kafka-ingestion/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
include:
- ../greptimedb-common.yml
services:
kafka:
image: docker.io/bitnami/kafka:3.6.0
Expand Down Expand Up @@ -67,21 +69,5 @@ services:
condition: service_completed_successfully
command: "-c /config_data/vector.toml"

greptimedb:
image: docker.io/greptime/greptimedb:v0.9.3
command: standalone start --http-addr=0.0.0.0:4000 --rpc-addr=0.0.0.0:4001 --mysql-addr=0.0.0.0:4002 --postgres-addr 0.0.0.0:4003
ports:
- 4000:4000
- 4001:4001
- 4002:4002
- 4003:4003
networks:
- demo-network
healthcheck:
test: ["CMD", "curl", "-f", "http://127.0.0.1:4000/health"]
interval: 3s
timeout: 3s
retries: 5

networks:
demo-network:
18 changes: 2 additions & 16 deletions nginx-log-metrics/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,6 @@
include:
- ../greptimedb-common.yml
services:
greptimedb:
image: docker.io/greptime/greptimedb:v0.11.1
command: standalone start --http-addr=0.0.0.0:4000 --rpc-addr=0.0.0.0:4001 --mysql-addr=0.0.0.0:4002 --postgres-addr 0.0.0.0:4003
ports:
- 4000:4000
- 4001:4001
- 4002:4002
- 4003:4003
networks:
- demo-network
healthcheck:
test: [ "CMD", "curl", "-f", "http://127.0.0.1:4000/health" ]
interval: 3s
timeout: 3s
retries: 5

grafana:
build:
context: ./grafana
Expand Down
19 changes: 3 additions & 16 deletions postgres-fdw/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
include:
- ../greptimedb-common.yml

services:
envsubst:
image: docker.io/widerplan/envsubst
Expand All @@ -10,22 +13,6 @@ services:
required: false
init: true

greptimedb:
image: docker.io/greptime/greptimedb:v0.11.0
command: standalone start --http-addr=0.0.0.0:4000 --rpc-addr=0.0.0.0:4001 --mysql-addr=0.0.0.0:4002 --postgres-addr 0.0.0.0:4003
ports:
- 4000:4000
- 4001:4001
- 4002:4002
- 4003:4003
networks:
- demo-network
healthcheck:
test: [ "CMD", "curl", "-f", "http://127.0.0.1:4000/health" ]
interval: 3s
timeout: 3s
retries: 5

postgresql:
image: docker.io/postgres:17
ports:
Expand Down

0 comments on commit 705c816

Please sign in to comment.