Add ZooKeeper Component (#1899)
This commit is contained in:
parent
d03ead34a2
commit
35ffd02b44
|
@ -437,6 +437,17 @@ services:
|
||||||
networks:
|
networks:
|
||||||
- backend
|
- 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 ##########################################
|
||||||
aerospike:
|
aerospike:
|
||||||
build: ./aerospike
|
build: ./aerospike
|
||||||
|
|
|
@ -207,6 +207,10 @@ MYSQL_ENTRYPOINT_INITDB=./mysql/docker-entrypoint-initdb.d
|
||||||
|
|
||||||
REDIS_PORT=6379
|
REDIS_PORT=6379
|
||||||
|
|
||||||
|
### ZooKeeper #############################################
|
||||||
|
|
||||||
|
ZOOKEEPER_PORT=2181
|
||||||
|
|
||||||
### Percona ###############################################
|
### Percona ###############################################
|
||||||
|
|
||||||
PERCONA_DATABASE=homestead
|
PERCONA_DATABASE=homestead
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM zookeeper:latest
|
||||||
|
|
||||||
|
LABEL maintainer="Hyduan <hyduan96@qq.com>"
|
||||||
|
|
||||||
|
VOLUME /data
|
||||||
|
VOLUME /datalog
|
||||||
|
|
||||||
|
EXPOSE 2181
|
||||||
|
|
||||||
|
CMD ["zookeeper"]
|
Loading…
Reference in New Issue