-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a quick-start-lite.yaml docker-compose file (#46)
- Loading branch information
Showing
4 changed files
with
88 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
version: "3.5" | ||
|
||
services: | ||
hserver: | ||
image: hstreamdb/hstream:latest | ||
depends_on: | ||
- zookeeper | ||
- hstore | ||
ports: | ||
- "127.0.0.1:6570:6570" | ||
expose: | ||
- 6570 | ||
networks: | ||
- hstream-quickstart | ||
volumes: | ||
- /var/run/docker.sock:/var/run/docker.sock | ||
- /tmp:/tmp | ||
- data_store:/data/store | ||
command: | ||
- bash | ||
- "-c" | ||
- | | ||
set -e | ||
/usr/local/script/wait-for-storage.sh hstore 6440 zookeeper 2181 600 \ | ||
/usr/local/bin/hstream-server \ | ||
--bind-address 0.0.0.0 --port 6570 \ | ||
--internal-port 6571 \ | ||
--server-id 100 \ | ||
--seed-nodes "$$(hostname -I | awk '{print $$1}'):6571" \ | ||
--advertised-address $$(hostname -I | awk '{print $$1}') \ | ||
--metastore-uri zk://zookeeper:2181 \ | ||
--store-config /data/store/logdevice.conf \ | ||
--store-admin-host hstore --store-admin-port 6440 \ | ||
--store-log-level warning \ | ||
--io-tasks-path /tmp/io/tasks \ | ||
--io-tasks-network hstream-quickstart | ||
hstore: | ||
image: hstreamdb/hstream:latest | ||
networks: | ||
- hstream-quickstart | ||
volumes: | ||
- data_store:/data/store | ||
command: | ||
- bash | ||
- "-c" | ||
- | | ||
set -ex | ||
# N.B. "enable-dscp-reflection=false" is required for linux kernel which | ||
# doesn't support dscp reflection, e.g. centos7. | ||
/usr/local/bin/ld-dev-cluster --root /data/store \ | ||
--use-tcp --tcp-host $$(hostname -I | awk '{print $$1}') \ | ||
--user-admin-port 6440 \ | ||
--param enable-dscp-reflection=false \ | ||
--no-interactive | ||
zookeeper: | ||
image: zookeeper:3.7 | ||
expose: | ||
- 2181 | ||
networks: | ||
- hstream-quickstart | ||
volumes: | ||
- data_zk_data:/data | ||
- data_zk_datalog:/datalog | ||
|
||
networks: | ||
hstream-quickstart: | ||
name: hstream-quickstart | ||
|
||
volumes: | ||
data_store: | ||
name: quickstart_data_store | ||
data_zk_data: | ||
name: quickstart_data_zk_data | ||
data_zk_datalog: | ||
name: quickstart_data_zk_datalog |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters