Skip to content

Commit 3f0661a

Browse files
authored
add 9 more databases (#12)
* add clickhouse, cockroach, meilisesarch, scylla, tarantool, tidb cluster, typesense, yugabyte * Update README.md * add aerospike * update README.md aerospike * remove www * bugfix docs clickhouse link
1 parent c9a2057 commit 3f0661a

24 files changed

+1378
-9
lines changed

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
11
docker-compose.override.yml
22
.env
3+
tidb/data
4+
tidb/logs
5+
tidb/config/*/
6+
.idea
7+
cockroach/cockroach1
8+
cockroach/data

README.md

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,22 @@ A collection of Docker Compose files I've used to quickly spin up local database
44

55
# Included Databases
66

7-
Database | Docker Compose Configuration | Website
8-
---------- | ---------------------------- | ----------------------------------
9-
DynamoDB | [./dynamo](./dynamo/) | <https://aws.amazon.com/dynamodb/>
10-
Fauna | [./fauna](./fauna/) | <https://fauna.com/>
11-
MariaDB | [./maria](./maria/) | <https://mariadb.org/>
12-
MongoDB | [./mongo](./mongo/) | <https://www.mongodb.com/>
13-
MySQL | [./mysql](./mysql/) | <https://www.mysql.com/>
14-
PostgreSQL | [./postgres](./postgres/) | <https://www.postgresql.org/>
15-
Redis | [./redis](./redis/) | <https://redis.io/>
7+
Database | Docker Compose Configuration | Website
8+
----------- | ------------------------------- | ----------------------------------
9+
Aerospike | [./aerospike](./aerospike) | <https://aerospike.com/>
10+
ClickHouse | [./clickhouse](./clickhouse) | <https://clickhouse.tech/>
11+
DynamoDB | [./dynamo](./dynamo/) | <https://aws.amazon.com/dynamodb/>
12+
Fauna | [./fauna](./fauna/) | <https://fauna.com/>
13+
MariaDB | [./maria](./maria/) | <https://mariadb.org/>
14+
MeiliSearch | [./meilisearch](./meilisearch/) | <https://meilisearch.com/>
15+
MongoDB | [./mongo](./mongo/) | <https://mongodb.com/>
16+
MySQL | [./mysql](./mysql/) | <https://mysql.com/>
17+
PostgreSQL | [./postgres](./postgres/) | <https://postgresql.org/>
18+
Redis | [./redis](./redis/) | <https://redis.io/>
19+
ScyllDB | [./scylla](./scylla) | <https://scylladb.com/>
20+
Tarantool | [./tarantool](./tarantool/) | <https://tarantool.io/>
21+
TiDB | [./tidb](./tidb/) | <https://pingcap.com/>
22+
YugaByteDB | [./yugabyte](./yugabyte) | <https://yugabyte.com/>
1623

1724
## Usage
1825

@@ -31,3 +38,9 @@ docker-compose down -v
3138
## Contributions
3239

3340
If you have a Docker Compose configuration for a database not seen here, please consider making a pull request to add it!
41+
42+
## TODO
43+
44+
- add data volume binding for each database
45+
- add all possible environment variables
46+
- add example how to connect with client, with or without docker (have client program installed), and with go

aerospike/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Aerospike w/ Docker Compose
2+
3+
with default empty password
4+
5+
## Connecting with client
6+
7+
```
8+
node=`docker ps | grep aerospike | cut -f 1 -d ' '`
9+
docker exec -it $node aql
10+
```
11+
12+
## Other docs
13+
14+
[aerospike docker](https://docs.aerospike.com/docs/deploy_guides/docker/orchestrate/)

aerospike/aerospike.conf

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# Aerospike database configuration file.
2+
3+
# This stanza must come first.
4+
service {
5+
user root
6+
group root
7+
paxos-single-replica-limit 1 # Number of nodes where the replica count is automatically reduced to 1.
8+
pidfile /var/run/aerospike/asd.pid
9+
service-threads 20 # Should be 5 times number of vCPUs if there is at least
10+
# 1 SSD namespace, otherwise simply the number of vCPUs.
11+
proto-fd-max 15000
12+
}
13+
14+
logging {
15+
16+
# Log file must be an absolute path.
17+
file /var/log/aerospike/aerospike.log {
18+
context any info
19+
}
20+
21+
# Send log messages to stdout
22+
console {
23+
context any info
24+
}
25+
}
26+
27+
network {
28+
service {
29+
address any
30+
port 3000
31+
}
32+
33+
heartbeat {
34+
35+
# mesh is used for environments that do not support multicast
36+
mode mesh
37+
port 3002
38+
39+
# use asinfo -v 'tip:host=<ADDR>;port=3002' to inform cluster of
40+
# other mesh nodes
41+
#mesh-port 3002
42+
43+
interval 150
44+
timeout 10
45+
}
46+
47+
fabric {
48+
port 3001
49+
}
50+
51+
}
52+
53+
namespace test {
54+
replication-factor 2
55+
memory-size 1G
56+
57+
# storage-engine memory
58+
59+
# To use file storage backing, comment out the line above and use the
60+
# following lines instead.
61+
storage-engine device {
62+
file /opt/aerospike/data/test.dat
63+
filesize 4G
64+
data-in-memory true # Store data in memory in addition to file.
65+
}
66+
}

aerospike/docker-compose.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
version: "3.2"
2+
3+
services:
4+
aerospikedb:
5+
image: aerospike/aerospike-server:latest
6+
deploy:
7+
replicas: 1
8+
endpoint_mode: dnsrr
9+
labels:
10+
com.aerospike.cluster: "myproject"
11+
command: [ "--config-file","/run/secrets/aerospike.conf"]
12+
secrets:
13+
- source: conffile
14+
target: aerospike.conf
15+
mode: 0440
16+
ports:
17+
- "3000:3000"
18+
19+
secrets:
20+
conffile:
21+
file: ./aerospike.conf

clickhouse/README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# MeiliSearch w/ Docker Compose
2+
3+
with default empty password
4+
5+
## Change password and other config
6+
7+
```
8+
volumes:
9+
- ./local.xml:/etc/clickhouse-server/config.d/local.xml
10+
```
11+
12+
## Connecting with client
13+
14+
```
15+
clickhouse-client
16+
```
17+
18+
## Other docs
19+
20+
[clickhouse server docker](https://hub.docker.com/r/yandex/clickhouse-server/)

clickhouse/docker-compose.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: "3.2"
2+
3+
services:
4+
clickhouse:
5+
image: yandex/clickhouse-server
6+
ports:
7+
- 8123:8123
8+
- 9000:9000
9+
ulimits:
10+
nofile:
11+
soft: 262144
12+
hard: 262144

cockroach/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# CockroachDB w/ Docker Compose
2+
3+
with default empty password
4+
5+
## Connecting with client
6+
7+
```
8+
node=`docker ps | grep cockroach | cut -f 1 -d ' '`
9+
docker exec -it $node cockroach sql --insecure
10+
```
11+
12+
## Other docs
13+
14+
[cockroach docker](https://kb.objectrocket.com/cockroachdb/docker-compose-and-cockroachdb-1151)

cockroach/docker-compose.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: "3.2"
2+
3+
services:
4+
cockroach:
5+
image: cockroachdb/cockroach:latest
6+
volumes:
7+
- ./cockroach1:/cockroach/cockroach-data
8+
command: start-single-node --insecure --accept-sql-without-tls
9+
ports:
10+
- "26257:26257"
11+
- "8080:8080"
12+

meilisearch/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# MeiliSearch w/ Docker Compose
2+
3+
with default empty key
4+
5+
## Change master key
6+
7+
```
8+
set the key
9+
command: ./meilisearch --master-key=masterKey
10+
```
11+
12+
## Other docs
13+
14+
[installation with docker](https://docs.meilisearch.com/learn/getting_started/installation.html#download-and-launch)

0 commit comments

Comments
 (0)