k8s初始版本storm
This commit is contained in:
74
storm/docker-compose.yml
Normal file
74
storm/docker-compose.yml
Normal file
@@ -0,0 +1,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"
|
||||
Reference in New Issue
Block a user