blob: 78b8bea95dce4a67690c329e4b7c393e38893f36 (
plain)
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
|
version: "3"
services:
#设置容器名称和docker-compose中的名称(文件夹名称_当前名称_数字),如果下面配置了container_name,以container_name中的值为准
nimbus:
#依赖的镜像
{% if offline_install %}
image: {{ image_name }}:{{ image_tag_name }}
{% else %}
image: {{ docker_registry_image_and_tag }}
{% endif %}
container_name: {{ nimbus_container_name }}
command: /opt/apache-storm-1.0.2/start_storm.sh storm nimbus
restart: always
ports:
- 6627:6627
environment:
ZK_IPARR: {{ machine_host }}
NIMBUS_IP: {{ machine_host }}
ZK_PORTS: {{ zookeeper_port }}
SPORTS: 30
WORKER_MEM: 2048
volumes:
- "{{ volume_path }}/tsg3.0-volumes/storm/nimbus/data:/opt/storm"
- "{{ volume_path }}/tsg3.0-volumes/storm/nimbus/logs:/opt/apache-storm-1.0.2/logs"
- "/etc/localtime:/etc/localtime:ro"
- "/etc/timezone:/etc/timezone:ro"
network_mode: "host"
supervisor:
#依赖的镜像
{% if offline_install %}
image: {{ image_name }}:{{ image_tag_name }}
{% else %}
image: {{ docker_registry_image_and_tag }}
{% endif %}
container_name: {{ supervisor_container_name }}
command: /opt/apache-storm-1.0.2/start_storm.sh storm supervisor
environment:
ZK_IPARR: {{ machine_host }}
NIMBUS_IP: {{ machine_host }}
ZK_PORTS: {{ zookeeper_port }}
SPORTS: 30
WORKER_MEM: 2048
depends_on:
- nimbus
restart: always
volumes:
- "{{ volume_path }}/tsg3.0-volumes/storm/supervisor/data:/opt/storm"
- "{{ volume_path }}/tsg3.0-volumes/storm/supervisor/logs:/opt/apache-storm-1.0.2/logs"
- "{{ volume_path }}/tsg3.0-volumes/topologylogs:/opt/topologylogs"
- "/etc/localtime:/etc/localtime:ro"
- "/etc/timezone:/etc/timezone:ro"
network_mode: "host"
ui:
#依赖的镜像
{% if offline_install %}
image: {{ image_name }}:{{ image_tag_name }}
{% else %}
image: {{ docker_registry_image_and_tag }}
{% endif %}
container_name: {{ ui_container_name }}
command: /opt/apache-storm-1.0.2/start_storm.sh storm ui
ports:
- 8080:8080
environment:
ZK_IPARR: {{ machine_host }}
NIMBUS_IP: {{ machine_host }}
ZK_PORTS: {{ zookeeper_port }}
SPORTS: 30
WORKER_MEM: 2048
depends_on:
- nimbus
network_mode: "host"
|