Skip to content

Commit 0f061f2

Browse files
committed
[tsdb][kairosdb] Copy docker-compose from libtsdb
- copied from libtsdb/libtsdb-go#8
1 parent a964ea7 commit 0f061f2

File tree

8 files changed

+536
-5
lines changed

8 files changed

+536
-5
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ Provision machine, setup databases and benchmarks frameworks
1010

1111
RDBMS
1212

13-
- [ ] MySQL (single node)
13+
- [x] MySQL (single node)
1414
- [ ] MySQL (master slave?)
15-
- [ ] PostgreSQL (single node)
15+
- [x] PostgreSQL (single node)
1616
- [ ] PostgresSQL (multi node)
1717

1818
KV
@@ -35,7 +35,7 @@ TSDB
3535

3636
- [ ] timescaledb (along w/ Postgres)
3737
- [ ] InfluxDB (only single node is available)
38-
- [ ] KairosDB
38+
- [x] KairosDB
3939
- [ ] OpenTSDB
4040

4141
Hybrid?

docker.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Commands
44

5-
- `docker compose up service-name`
5+
- `docker-compose up service-name`
66
- `docker rm $(docker ps -a -q)` remove all stopped containers
77

88
## Docker engine
@@ -11,7 +11,10 @@ Just use Ubuntu 17.04 as host environment, since this is my local environment
1111

1212
- default version in apt seems to be 17.03, while the latest stable is 17.12
1313
- https://docs.docker.com/release-notes/docker-ce/
14-
- seems to be able to use https://download.docker.com/linux/ubuntu/dists/zesty/pool/stable/amd64/
14+
- seems to be able to use
15+
- 17.04 (no longer supported by Ubuntu) https://download.docker.com/linux/ubuntu/dists/zesty/pool/stable/amd64/
16+
- 17.10 https://download.docker.com/linux/ubuntu/dists/artful/pool/stable/amd64/
17+
- `sudo usermod -aG docker at15` replace `at15` with your user name, `groups at15`
1518

1619
## Docker compose
1720

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# docker-compose up
2+
# docker-compose down
3+
version: '3'
4+
services:
5+
# https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html
6+
elasticsearch:
7+
# three flavors, the default, ships w/ X-Pack Basic features
8+
image: docker.elastic.co/elasticsearch/elasticsearch:6.1.3
9+
environment:
10+
- ELASTIC_PASSWORD=elasticsearchpassword
11+
- discovery.type=single-node
12+
ports:
13+
- "9200:9200"
14+
- "9300:9300"
15+
kibana:
16+
image: docker.elastic.co/kibana/kibana:6.1.3
17+
ports:
18+
- "5601:5601"

rdbms/pg/docker-compose.yml renamed to rdbms/postgres/docker-compose.yml

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# docker-compose up
22
version: '3'
33
services:
4+
# https://hub.docker.com/_/postgres/
45
pg:
56
image: "postgres:10.1"
67
environment:

tsdb/kairosdb/docker-compose.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# docker-compose up
2+
# docker-compose down
3+
version: '3'
4+
services:
5+
cassandra:
6+
image: cassandra:3.11
7+
# NOTE: depends on condition is ignored by compose file version 3
8+
# https://docs.docker.com/compose/compose-file/#depends_on
9+
# https://docs.docker.com/compose/startup-order/
10+
kaiorsdb:
11+
build: .
12+
depends_on:
13+
- cassandra
14+
links:
15+
- cassandra
16+
ports:
17+
- "8080:8080"

0 commit comments

Comments
 (0)