-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathcompose.hbase.yml
83 lines (77 loc) · 1.91 KB
/
compose.hbase.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
version: '2'
services:
# Before building any of these containers; please run
# docker-compose -f docker-compose.build.yml build
# as that will build the base images
# HBase is here...
zookeeper:
image: karlstoney/hbase
build: ./hbase
restart: always
hostname: hbase-zookeeper
container_name: hbase-zookeeper
command: hbase zookeeper start
mem_limit: 512m
memswap_limit: 1g
ports:
- 17003:2181
env_file:
- ./stack.env
regionserver:
image: karlstoney/hbase
build: ./hbase
restart: always
hostname: hbase-regionserver
container_name: hbase-regionserver
command: hbase regionserver start
mem_limit: 512m
memswap_limit: 1g
ports:
- 17002:16030
env_file:
- ./stack.env
master:
image: karlstoney/hbase
build: ./hbase
restart: always
hostname: hbase-master
container_name: hbase-master
command: hbase master start
mem_limit: 512m
memswap_limit: 1g
environment:
# docker-compose networking is flakey, I've added a script
# which does DNS looking for any HOST_ENTRY_* ENV variables
# and adds it to the hostfile for the container, thus bypassing
# the DNS lookup which adds the project network name
- HOST_ENTRY_1=hbase-regionserver
ports:
- 17001:16010
env_file:
- ./stack.env
thrift:
image: karlstoney/hbase
build: ./hbase
restart: always
hostname: hbase-thrift
container_name: hbase-thrift
command: hbase thrift start -t 5000 -p 9090
mem_limit: 1g
memswap_limit: 2g
ports:
- 17004:9095 # UI
env_file:
- ./stack.env
rest:
image: karlstoney/hbase
build: ./hbase
restart: always
hostname: hbase-rest
container_name: hbase-rest
command: hbase rest start
mem_limit: 512m
memswap_limit: 2g
ports:
- 17005:8080 # api
env_file:
- ./stack.env