-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
46 lines (43 loc) · 1007 Bytes
/
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
version: '3.7'
services:
airports:
build:
context: .
dockerfile: dockerfile.airports
restart: "always"
command: "java -Djava.security.egd=file:/dev/./urandom -jar app.jar"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health/ready"]
interval: 60s
timeout: 10s
retries: 3
start_period: 20s
expose:
- "8080"
countries:
build:
context: .
dockerfile: dockerfile.countries
restart: "always"
command: "java -Djava.security.egd=file:/dev/./urandom -jar app.jar"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health/ready"]
interval: 60s
timeout: 10s
retries: 3
start_period: 20s
expose:
- "8080"
nginx:
build:
context: .
dockerfile: dockerfile.nginx
restart: "always"
links:
- airports
- countries
ports:
- target: 8000
published: 8000
protocol: tcp
mode: host