forked from WANdisco/fusion-docker-compose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.zone-tmpl-cdh.yml
156 lines (145 loc) · 5.74 KB
/
docker-compose.zone-tmpl-cdh.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
#################################################################################
# Copyright (c) 2014-2019 WANdisco
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
#
# Apache License, Version 2.0
#
################################################################################
#
# This docker-compose.yml file creates all WANdisco Fusion services needed to
# for running in an CDH zone.
#
# Services running in each zone
# Zone
# Fusion NameNode Proxy (fusion-nn-proxy)
# Fusion UI Server CDH (fusion-ui-server-${ZONE_NAME})
# Fusion IHC Server (fusion-ihc-server-${ZONE_NAME})
# Fusion Server (fusion-server-${ZONE_NAME})
#
# Note: while version 3.7 is technically compatible with Docker 18.06 and
# higher, this project was tested with only Docker 18.09 as of 2019-08-06.
version: "3.7"
services:
debug:
image: ubuntu
command: ["tail", "-f", "/dev/null"]
volumes:
- logging-server-${ZONE_NAME}:/debug/server-${ZONE_NAME}
- logging-ui-server-${ZONE_NAME}:/debug/ui-server-${ZONE_NAME}
- logging-ihc-${ZONE_NAME}:/debug/ihc-server-${ZONE_NAME}
- logging-npx-${ZONE_NAME}:/debug/npx-${ZONE_NAME}
networks:
- fusion
# Fusion NameNode Proxy (NPX)
fusion-nn-proxy-${ZONE_NAME}:
image: wandisco/fusion-nn-proxy-${PLATFORM}:${FUSION_NN_PROXY_VERSION}-${FUSION_NN_PROXY_IMAGE_RELEASE}
restart: unless-stopped
depends_on:
- fusion-server-${ZONE_NAME}
networks:
- fusion
ports:
- ${FUSION_NAME_NODE_PROXY_PORT}:${FUSION_NAME_NODE_PROXY_PORT}
env_file:
- "${ZONE_ENV}"
volumes:
- logging-npx-${ZONE_NAME}:/var/log/fusion
- fusion-${ZONE_NAME}-etc-wandisco:/etc/wandisco
- fusion-${ZONE_NAME}-etc-hadoop:/etc/hadoop
- ./config_files/krb5.conf:/etc/krb5.conf
- ./keytabs:/etc/security/keytabs
# Fusion UI Server
fusion-ui-server-${ZONE_NAME}:
image: wandisco/fusion-ui-server-${PLATFORM}:${FUSION_BASE_VERSION}-${FUSION_IMAGE_RELEASE}
restart: unless-stopped
depends_on:
- fusion-server-${ZONE_NAME}
networks:
- fusion
ports:
- ${FUSION_UI_SERVER_PORT}:${FUSION_UI_SERVER_PORT}
- ${FUSION_UI_SERVER_PORT_TLS}:${FUSION_UI_SERVER_PORT_TLS}
restart: always
env_file:
- "${ZONE_ENV}"
volumes:
- logging-ui-server-${ZONE_NAME}:/var/log/fusion
- fusion-${ZONE_NAME}-opt-wandisco-fusion-server-checkpoint:/opt/wandisco/fusion/server/checkpoint
- fusion-${ZONE_NAME}-opt-wandisco-fusion-server-dcone:/opt/wandisco/fusion/server/dcone
- fusion-${ZONE_NAME}-etc-wandisco:/etc/wandisco
- fusion-${ZONE_NAME}-opt-wandisco-fusion-ui-server-properties:/opt/wandisco/fusion-ui-server/properties
- fusion-${ZONE_NAME}-etc-hadoop:/etc/hadoop
- ./config_files/krb5.conf:/etc/krb5.conf
- ./keytabs:/etc/security/keytabs
${LICENSE_FILE_PATH}
# Fusion IHC Server
fusion-ihc-server-${ZONE_NAME}:
image: wandisco/fusion-ihc-server-${PLATFORM}:${FUSION_BASE_VERSION}-${FUSION_IMAGE_RELEASE}
restart: unless-stopped
depends_on:
- fusion-server-${ZONE_NAME}
networks:
- fusion
ports:
- ${FUSION_IHC_SERVER_PORT}:${FUSION_IHC_SERVER_PORT}
- ${FUSION_IHC_SERVER_JMX_PORT}:${FUSION_IHC_SERVER_JMX_PORT}
restart: always
env_file:
- "${ZONE_ENV}"
volumes:
- logging-ihc-${ZONE_NAME}:/var/log/fusion
- fusion-${ZONE_NAME}-opt-wandisco-fusion-server-checkpoint:/opt/wandisco/fusion/server/checkpoint
- fusion-${ZONE_NAME}-etc-wandisco:/etc/wandisco
- fusion-${ZONE_NAME}-etc-hadoop:/etc/hadoop
- ./config_files/krb5.conf:/etc/krb5.conf
- ./keytabs:/etc/security/keytabs
- fusion-${ZONE_NAME}-restart:/restart
${LICENSE_FILE_PATH}
# Fusion Server
fusion-server-${ZONE_NAME}:
image: wandisco/fusion-server-${PLATFORM}:${FUSION_BASE_VERSION}-${FUSION_IMAGE_RELEASE}
restart: unless-stopped
networks:
- fusion
ports:
- ${FUSION_SERVER_HDFS_PORT}:${FUSION_SERVER_HDFS_PORT}
- ${FUSION_SERVER_TLS_PORT}:${FUSION_SERVER_TLS_PORT}
- ${FUSION_SERVER_IHC_LISTENER_PORT}:${FUSION_SERVER_IHC_LISTENER_PORT}
- ${FUSION_SERVER_PORT}:${FUSION_SERVER_PORT}
restart: always
environment:
- DB_ACTION=
env_file:
- "${ZONE_ENV}"
volumes:
- logging-server-${ZONE_NAME}:/var/log/fusion
- fusion-${ZONE_NAME}-opt-wandisco-fusion-server-checkpoint:/opt/wandisco/fusion/server/checkpoint
- fusion-${ZONE_NAME}-opt-wandisco-fusion-server-dcone:/opt/wandisco/fusion/server/dcone
- fusion-${ZONE_NAME}-etc-wandisco:/etc/wandisco
- fusion-${ZONE_NAME}-etc-hadoop:/etc/hadoop
- ./config_files/krb5.conf:/etc/krb5.conf
- ./keytabs:/etc/security/keytabs
- fusion-${ZONE_NAME}-restart:/restart
- fusion-${ZONE_NAME}-opt-wandisco-fusion-ui-server-properties:/opt/wandisco/fusion-ui-server/properties
${LICENSE_FILE_PATH}
networks:
# One Docker network is shared between both zones
fusion: {}
volumes:
# The named logging volumes for all components
logging-server-${ZONE_NAME}:
logging-ui-server-${ZONE_NAME}:
logging-ihc-${ZONE_NAME}:
logging-npx-${ZONE_NAME}:
# Checkpoint volume (confirm if this is needed to persist across container restarts)
fusion-${ZONE_NAME}-opt-wandisco-fusion-server-checkpoint:
# dcone volume to persist database changes across restarts
fusion-${ZONE_NAME}-opt-wandisco-fusion-server-dcone:
# volumes for persisting config
fusion-${ZONE_NAME}-etc-wandisco:
fusion-${ZONE_NAME}-etc-hadoop:
fusion-${ZONE_NAME}-opt-wandisco-fusion-ui-server-properties: