-
Notifications
You must be signed in to change notification settings - Fork 0
/
service.yaml
63 lines (59 loc) · 1.16 KB
/
service.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
version: '3.8'
services:
mysqldb:
container_name: mysql-server-01
image: server01-mysql:1.1
restart: always
environment:
MYSQL_ROOT_PASSWORD: 'mysqlroot'
ports:
- '3306:3306'
expose:
- '3306'
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-uroot", "-pmysqlroot"]
interval: 10s
retries: 20
networks:
- apim-net
apim-node01:
container_name: wso2apim-node-01
image: node01-apim:1.1
ports:
- 9443:9443
- 8280:8280
- 5673:5673
- 9611:9611
- 9711:9711
- 8243:8243
healthcheck:
test: ["CMD", "nc", "-z", "localhost", "9443"]
interval: 10s
start_period: 180s
retries: 20
depends_on:
- mysqldb
networks:
- apim-net
apim-node02:
container_name: wso2apim-node-02
image: node02-apim:1.1
ports:
- 9445:9445
- 8282:8282
- 5675:5675
- 9613:9613
- 9713:9713
- 8245:8245
healthcheck:
test: ["CMD", "nc", "-z", "localhost", "9445"]
interval: 10s
start_period: 180s
retries: 20
depends_on:
- mysqldb
networks:
- apim-net
networks:
apim-net:
external: true