-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
58 lines (51 loc) · 1.45 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
version: '3'
services:
h2database-client:
image: oscarfonts/h2
restart: always
environment:
H2_OPTIONS: -ifNotExists
h2database-order:
image: oscarfonts/h2
restart: always
environment:
H2_OPTIONS: -ifNotExists
AUI_Lab-order:
image: AUI_Lab-order:1.0.0-SNAPSHOT
restart: always
depends_on:
- h2database-order
healthcheck:
test: curl -f http://localhost:8080/api/orders || exit 1
interval: 30s
timeout: 10s
retries: 3
start_period: 20s
start_interval: 5s
environment:
SPRING_DATASOURCE_URL: jdbc:h2:tcp://h2database-order:1521/AUI_Lab-order
AUI_Lab-client:
image: AUI_Lab-client:1.0.0-SNAPSHOT
restart: always
depends_on:
h2database-client:
condition: service_started
AUI_Lab-order:
condition: service_healthy
environment:
AUI_LAB_ORDER_URL: "http://AUI_Lab-order:8080"
SPRING_DATASOURCE_URL: jdbc:h2:tcp://h2database-client:1521/AUI_Lab-client
AUI_Lab-gateway:
image: AUI_Lab-gateway:1.0.0-SNAPSHOT
restart: always
environment:
AUI_LAB_ORDER_URL: "http://AUI_Lab-order:8080"
AUI_LAB_CLIENT_URL: "http://AUI_Lab-client:8080"
AUI_LAB_GATEWAY_HOST: "AUI_Lab-gateway:8080"
AUI_Lab-ng:
image: AUI_Lab-ng:1.0.0-SNAPSHOT
restart: always
environment:
API_URL: http://AUI_Lab-gateway:8080/api
ports:
- "8087:80"