forked from strongloop/apiconnect-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
122 lines (112 loc) · 2.36 KB
/
docker-compose.yaml
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
version: '2'
services:
make-ssh-keys:
build: config-ssh-keys
container_name: make-ssh-keys
volumes:
- config_ssh_keys:/keys:rw
esmaster:
build: elasticsearch-master
container_name: esmaster
networks:
- ibmnet
volumes:
- es_data:/usr/share/elasticsearch/data
datapower:
build: datapower
container_name: datapower
networks:
- ibmnet
environment:
- DATAPOWER_ACCEPT_LICENSE=$ACCEPT_LICENSE
apim:
image: ibmcom/apiconnect:manager-${APIC_VERSION}
mem_limit: 2048m
volumes:
- apim_ihvar:/ihvar
- apim_wip:/wip
- config_ssh_keys:/keys:ro
environment:
- MANAGEMENT_CLUSTER_HOST=apim
- PORTAL_PRIVATE_KEY=/keys/portal
- PORTAL_PUBLIC_KEY=/keys/portal.pub
- PORTAL_LB=ibmportal
- ES_HOST=esmaster
- ES_PORT=9500
- SMTP_HOST
- SMTP_PORT
- SMTP_USERNAME
- SMTP_PASSWORD
- SMTP_SENDER
- LOGSTASH_HOST=ibmlogstash
- ACCEPT_LICENSE
container_name: apim
networks:
- ibmnet
depends_on:
- make-ssh-keys
- esmaster
ibmportal:
image: ibmcom/apiconnect:portal-${APIC_VERSION}
environment:
- PORTAL_LB=ibmportal
- PORTAL_PUBLIC_KEY=/keys/portal.pub
- APIC_HOST=apim
- SMTP_HOST
- SMTP_PORT
- SMTP_USERNAME
- SMTP_PASSWORD
- SMTP_SENDER
- ACCEPT_LICENSE
volumes:
- ibmportal_var:/var
- ibmportal_etc:/etc
- config_ssh_keys:/keys:ro
container_name: ibmportal
depends_on:
- make-ssh-keys
- apim
networks:
- ibmnet
microservice:
build: microservice
container_name: microservice
networks:
- ibmnet
logstash:
image: ibmcom/apiconnect:logstash-${APIC_VERSION}
environment:
- ES_HOST=esmaster
- MGMT_HOST=apim
- DB_HOST=apim
- ACCEPT_LICENSE
networks:
- ibmnet
container_name: ibmlogstash
depends_on:
- apim
- esmaster
nginx:
build: sni-proxy
environment:
- PORTAL_DNS=ibmportal
- APIM_DNS=apim
- GATEWAY_DNS=datapower
ports:
- "443:443"
container_name: nginx
depends_on:
- ibmportal
- datapower
- apim
networks:
- ibmnet
volumes:
config_ssh_keys:
apim_ihvar:
apim_wip:
ibmportal_var:
ibmportal_etc:
es_data:
networks:
ibmnet: