Add ZooKeeper Component (#1899)

This commit is contained in:
Hyduan 2019-01-08 15:29:04 +08:00 committed by Shao Yu-Lung (Allen)
parent d03ead34a2
commit 35ffd02b44
3 changed files with 25 additions and 0 deletions

View File

@ -437,6 +437,17 @@ services:
networks:
- backend
### ZooKeeper #########################################
zookeeper:
build: ./zookeeper
volumes:
- ${DATA_PATH_HOST}/zookeeper/data:/data
- ${DATA_PATH_HOST}/zookeeper/datalog:/datalog
ports:
- "${ZOOKEEPER_PORT}:2181"
networks:
- backend
### Aerospike ##########################################
aerospike:
build: ./aerospike

View File

@ -207,6 +207,10 @@ MYSQL_ENTRYPOINT_INITDB=./mysql/docker-entrypoint-initdb.d
REDIS_PORT=6379
### ZooKeeper #############################################
ZOOKEEPER_PORT=2181
### Percona ###############################################
PERCONA_DATABASE=homestead

10
zookeeper/Dockerfile Normal file
View File

@ -0,0 +1,10 @@
FROM zookeeper:latest
LABEL maintainer="Hyduan <hyduan96@qq.com>"
VOLUME /data
VOLUME /datalog
EXPOSE 2181
CMD ["zookeeper"]