diff --git a/.gitignore b/.gitignore index 37a5925..996297c 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,5 @@ tidb/config/*/ .idea cockroach/cockroach1 cockroach/data +nebulagraph/data +nebulagraph/logs diff --git a/README.md b/README.md index f1fe72a..8e3f94c 100644 --- a/README.md +++ b/README.md @@ -13,10 +13,12 @@ Fauna | [./fauna](./fauna/) | MariaDB | [./maria](./maria/) | MeiliSearch | [./meilisearch](./meilisearch/) | MongoDB | [./mongo](./mongo/) | +NebulaGraph | [./nebulagraph](./nebulagraph/) | MySQL | [./mysql](./mysql/) | PostgreSQL | [./postgres](./postgres/) | Redis | [./redis](./redis/) | -ScyllDB | [./scylla](./scylla) | +RedPanda | [./redpanda](./redpanda) | +ScyllaDB | [./scylla](./scylla) | Tarantool | [./tarantool](./tarantool/) | TiDB | [./tidb](./tidb/) | YugaByteDB | [./yugabyte](./yugabyte) | diff --git a/nebulagraph/README.md b/nebulagraph/README.md new file mode 100644 index 0000000..6424453 --- /dev/null +++ b/nebulagraph/README.md @@ -0,0 +1,19 @@ +# NebulaGraph w/ Docker Compose + +With default password + +## Connecting with client + +``` +nebula-console -u root -p nebula --address=graphd --port=9669 + +# or + +ip=`ifconfig | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1' | head -n 1` +docker run --rm -it --entrypoint nebula-console vesoft/nebula-console:v2.0.1 -u root -p nebula --address=$ip --port=9669 +``` + + +## Other docs + +[nebula docker compose](https://docs.nebula-graph.io/2.0.1/2.quick-start/2.deploy-nebula-graph-with-docker-compose/) diff --git a/nebulagraph/docker-compose.yml b/nebulagraph/docker-compose.yml new file mode 100644 index 0000000..e0815a3 --- /dev/null +++ b/nebulagraph/docker-compose.yml @@ -0,0 +1,100 @@ +version: '3.4' + +services: + metad0: + image: vesoft/nebula-metad:v2.0.1 + environment: + USER: root + TZ: "${TZ}" + command: + - --meta_server_addrs=metad0:9559 + - --local_ip=metad0 + - --ws_ip=metad0 + - --port=9559 + - --ws_http_port=19559 + - --data_path=/data/meta + - --log_dir=/logs + - --v=0 + - --minloglevel=0 + healthcheck: + test: ["CMD", "curl", "-sf", "http://metad0:19559/status"] + interval: 30s + timeout: 10s + retries: 3 + start_period: 20s + ports: + - 9559 + - 19559 + - 19560 + volumes: + - ./data/meta0:/data/meta + - ./logs/meta0:/logs + restart: on-failure + cap_add: + - SYS_PTRACE + + storaged0: + image: vesoft/nebula-storaged:v2.0.1 + environment: + USER: root + TZ: "${TZ}" + command: + - --meta_server_addrs=metad0:9559 + - --local_ip=storaged0 + - --ws_ip=storaged0 + - --port=9779 + - --ws_http_port=19779 + - --data_path=/data/storage + - --log_dir=/logs + - --v=0 + - --minloglevel=0 + depends_on: + - metad0 + healthcheck: + test: ["CMD", "curl", "-sf", "http://storaged0:19779/status"] + interval: 30s + timeout: 10s + retries: 3 + start_period: 20s + ports: + - 9779 + - 19779 + - 19780 + volumes: + - ./data/storage0:/data/storage + - ./logs/storage0:/logs + restart: on-failure + cap_add: + - SYS_PTRACE + + graphd: + image: vesoft/nebula-graphd:v2.0.1 + environment: + USER: root + TZ: "${TZ}" + command: + - --meta_server_addrs=metad0:9559 + - --port=9669 + - --local_ip=graphd + - --ws_ip=graphd + - --ws_http_port=19669 + - --log_dir=/logs + - --v=0 + - --minloglevel=0 + depends_on: + - storaged0 + healthcheck: + test: ["CMD", "curl", "-sf", "http://graphd:19669/status"] + interval: 30s + timeout: 10s + retries: 3 + start_period: 20s + ports: + - "9669:9669" + - 19669 + - 19670 + volumes: + - ./logs/graph:/logs + restart: on-failure + cap_add: + - SYS_PTRACE diff --git a/redpanda/README.md b/redpanda/README.md new file mode 100644 index 0000000..166c610 --- /dev/null +++ b/redpanda/README.md @@ -0,0 +1,14 @@ +# RedPanda w/ Docker Compose + +with default no password + +## Connecting with client + +``` +node=`docker ps | grep redpanda | cut -f 1 -d ' '` +docker exec -it redpanda-1 rpk +``` + +## Other docs + +[redpanda docker](https://vectorized.io/docs/quick-start-docker) diff --git a/redpanda/docker-compose.yml b/redpanda/docker-compose.yml new file mode 100644 index 0000000..efe7ab7 --- /dev/null +++ b/redpanda/docker-compose.yml @@ -0,0 +1,8 @@ +version: '3' + +services: + db: + image: vectorized/redpanda:latest + command: redpanda start --overprovisioned --smp 1 --memory 1G --reserve-memory 0M --node-id 0 --check=false + ports: + - 9092:9092