-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
101 lines (90 loc) · 3.02 KB
/
Copy pathdocker-compose.yml
File metadata and controls
101 lines (90 loc) · 3.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
version: '2'
services:
certs:
# build: https://github.com/robinzimmermann/docker.tutorials.git#certs:tls/cert-generator
# image: ca-generator:server
# docker build -t cert-generator .
# docker run --name cert-generator --rm -v $PWD/x509:/x509 cert-generator server
# To get the files: docker cp 2tls_certs_1:/x509 .
build: cert-generator
volumes:
- x509:/x509
example.com:
image: kaazing/enterprise-gateway:5.7.2
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"
- "7771:7771"
networks:
kwic-net:
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"
onprem:
image: kaazing/enterprise-gateway:5.7.2
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"
- "8881:8881"
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:
server-c:
image: kaazing/enterprise-gateway:5.7.2
environment:
GATEWAY_OPTS: "-Dservice-hostname=server-c -Dservice-port=7771"
volumes:
- ./config/echo-server-config.xml:/kaazing-gateway/conf/gateway-config.xml:ro
networks:
kwic-net:
server-d:
image: kaazing/enterprise-gateway:5.7.2
environment:
GATEWAY_OPTS: "-Dservice-hostname=server-d -Dservice-port=8881"
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.32.0.0/16
gateway: 172.32.0.1