-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
125 lines (115 loc) · 4.02 KB
/
Copy pathdocker-compose.yml
File metadata and controls
125 lines (115 loc) · 4.02 KB
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
version: '2'
services:
certs:
build: cert-generator
volumes:
- x509:/x509
cloud1.example.com:
image: kaazing/enterprise-gateway:5.7.2
environment:
GATEWAY_OPTS: "-Dcloud-node-hostname=cloud1.example.com -Dcom.kaazing.kwic.logging=on"
volumes:
- ./config/cloud-config.xml:/kaazing-gateway/conf/gateway-config.xml:ro
- ./config/log4j-config.xml:/kaazing-gateway/conf/log4j-config.xml:ro
- ./utils/wait-for-files.sh:/wait-for-files.sh:ro
- x509:/x509:ro
ports:
- "5551:5551"
networks:
kwic-net:
aliases:
- example.com
command: bash -c "/wait-for-files.sh
/x509/stores/keystore-cloud.jceks
/x509/stores/keystore-cloud.pw
/x509/stores/truststore-cloud.jceks
/x509/stores/truststore-cloud.pw
&& sleep 1
&& gateway.start"
cloud2.example.com:
image: kaazing/enterprise-gateway:5.7.2
environment:
GATEWAY_OPTS: "-Dcloud-node-hostname=cloud2.example.com -Dcom.kaazing.kwic.logging=on"
volumes:
- ./config/cloud-config.xml:/kaazing-gateway/conf/gateway-config.xml:ro
- ./config/log4j-config.xml:/kaazing-gateway/conf/log4j-config.xml:ro
- ./utils/wait-for-files.sh:/wait-for-files.sh:ro
- x509:/x509:ro
ports:
- "5552:5551"
networks:
kwic-net:
aliases:
- example.com
command: bash -c "/wait-for-files.sh
/x509/stores/keystore-cloud.jceks
/x509/stores/keystore-cloud.pw
/x509/stores/truststore-cloud.jceks
/x509/stores/truststore-cloud.pw
&& sleep 1
&& gateway.start"
onprem1.example.org:
image: kaazing/enterprise-gateway:5.7.2
environment:
GATEWAY_OPTS: "-Dcom.kaazing.kwic.logging=on"
volumes:
- ./config/onprem-config.xml:/kaazing-gateway/conf/gateway-config.xml:ro
- ./config/log4j-config.xml:/kaazing-gateway/conf/log4j-config.xml:ro
- ./utils/wait-for-files.sh:/wait-for-files.sh:ro
- x509:/x509:ro
ports:
- "6661:6661"
networks:
kwic-net:
command: bash -c "/wait-for-files.sh
/x509/stores/keystore-onprem.jceks
/x509/stores/keystore-onprem.pw
/x509/stores/truststore-onprem.jceks
/x509/stores/truststore-onprem.pw
&& sleep 1
&& gateway.start"
onprem2.example.org:
image: kaazing/enterprise-gateway:5.7.2
environment:
GATEWAY_OPTS: "-Dcom.kaazing.kwic.logging=on"
volumes:
- ./config/onprem-config.xml:/kaazing-gateway/conf/gateway-config.xml:ro
- ./config/log4j-config.xml:/kaazing-gateway/conf/log4j-config.xml:ro
- ./utils/wait-for-files.sh:/wait-for-files.sh:ro
- x509:/x509:ro
ports:
- "6662:6661"
networks:
kwic-net:
command: bash -c "/wait-for-files.sh
/x509/stores/keystore-onprem.jceks
/x509/stores/keystore-onprem.pw
/x509/stores/truststore-onprem.jceks
/x509/stores/truststore-onprem.pw
&& sleep 1
&& gateway.start"
server-a:
image: kaazing/enterprise-gateway:5.7.2
environment:
GATEWAY_OPTS: "-Dservice-hostname=server-a -Dservice-port=5551"
volumes:
- ./config/echo-server-config.xml:/kaazing-gateway/conf/gateway-config.xml:ro
networks:
kwic-net:
server-b:
image: kaazing/enterprise-gateway:5.7.2
environment:
GATEWAY_OPTS: "-Dservice-hostname=server-b -Dservice-port=6661"
volumes:
- ./config/echo-server-config.xml:/kaazing-gateway/conf/gateway-config.xml:ro
networks:
kwic-net:
volumes:
x509:
networks:
kwic-net:
driver: bridge
ipam:
config:
- subnet: 172.34.0.0/16
gateway: 172.34.0.1