-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
executable file
·137 lines (137 loc) · 3.53 KB
/
docker-compose.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
version: '2.3'
services:
https-portal:
image: steveltn/https-portal:1
ports:
- '80:80'
- '443:443'
environment:
STAGE: local
DOMAINS: 'example.com, api.moe.gov.com -> http://employee-service:80 , web.moe.gov.com -> http://hrm-web:3000' # saml.moe.gov.com -> http://saml-moe:443, apim.moe.gov.com -> http://api-manager:9443
mysql:
image: mysql:5.7.19
ports:
- 3306
environment:
MYSQL_ROOT_PASSWORD: root
volumes:
- ./apim/mysql/scripts:/docker-entrypoint-initdb.d
command: [--ssl=0]
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-uroot", "-proot"]
interval: 30s
timeout: 60s
retries: 5
start_period: 80s
am-analytics:
image: moelk/wso2am-analytics-base:2.6.0-alpine
ports:
- "9091:9091"
- "9444:9444"
healthcheck:
test: ["CMD", "nc", "-z","localhost", "9091"]
interval: 10s
timeout: 120s
start_period: 80s
retries: 10
depends_on:
mysql:
condition: service_healthy
volumes:
- ./apim/apim-analytics:/home/wso2carbon/wso2-config-volume
is-as-km:
image: moelk/wso2is:5.7.0-alpine
healthcheck:
test: ["CMD", "curl", "-k", "-f", "https://localhost:9443/carbon/"]
interval: 10s
timeout: 120s
start_period: 100s
retries: 15
depends_on:
mysql:
condition: service_healthy
# am-analytics:
# condition: service_healthy
volumes:
- ./apim/is-as-km:/home/wso2carbon/wso2-config-volume
ports:
- "9765:9763"
- "9445:9443"
api-manager:
image: moelk/wso2am:2.6.0-alpine
healthcheck:
test: ["CMD", "curl", "-k", "-f", "https://localhost:9443/carbon/admin/login.jsp"]
interval: 10s
timeout: 120s
start_period: 100s
retries: 5
depends_on:
mysql:
condition: service_healthy
# am-analytics:
# condition: service_healthy
# is-as-km:
# condition: service_healthy
volumes:
- ./apim:/home/wso2carbon/wso2-config-volume
ports:
- "9763:9763"
- "9443:9443"
- "8280:8280"
- "8243:8243"
employee-db:
build: ./employee-service/database
environment:
MYSQL_ROOT_PASSWORD: my_secret_pw_shh
MYSQL_DATABASE: edu
MYSQL_USER: devuser
MYSQL_PASSWORD: devpass
ports:
- "3306:3306"
command: --max_allowed_packet=32505856
saml-is:
image: moelk/ssp-base:1.16.1
ports:
- "7443:443"
command: --max_allowed_packet=32505856
volumes:
- ./simplesamlphp/config:/var/simplesamlphp/config
- ./simplesamlphp/metadata-templates:/var/simplesamlphp/metadata
# mssql-db:
# image: microsoft/mssql-server-linux
# ports:
# - '1433:1433'
# volumes:
# - './employee-service/database:/home/dump'
# environment:
# ACCEPT_EULA: "Y"
# SA_PASSWORD: "Nizar0756"
employee-service:
healthcheck:
test: ["CMD", "curl", "-k", "-f", "https://localhost/v2"]
interval: 10s
timeout: 120s
start_period: 100s
retries: 5
build: ./employee-service/php-fpm
volumes:
- ./employee-service/php-fpm:/var/www/html
ports:
- "8380:80"
environment:
VIRTUAL_HOST: api.moe.gov.com
VIRTUAL_PORT: '8380'
depends_on:
- employee-db
restart: always
hrm-web:
build: ./hrm-web
environment:
VIRTUAL_HOST: web.moe.gov.com
VIRTUAL_PORT: '3000'
working_dir: /usr/app
volumes:
- './hrm-web:/usr/app'
ports:
- "3000:3000"
restart: always