-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
58 lines (55 loc) · 1.42 KB
/
Copy pathdocker-compose.yml
File metadata and controls
58 lines (55 loc) · 1.42 KB
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
services:
server-jvm:
image: quarkus-lab/server-jvm:${TAG:-latest}
build:
context: ./server
dockerfile: Dockerfile.jvm
container_name: server-jvm
ports:
- "8080:8080" # HTTP Port
- "9001:9001" # gRPC Port
healthcheck:
# The /q/health/live endpoint is provided by the quarkus-smallrye-health extension.
test: [ "CMD", "curl", "-f", "http://localhost:8080/q/health/live" ]
interval: 15s
timeout: 5s
retries: 3
start_period: 15s
networks:
- lab-network
server-native:
image: quarkus-lab/server-native:${TAG:-latest}
build:
context: ./server
dockerfile: Dockerfile.native
container_name: server-native
ports:
- "8081:8080" # HTTP Port
- "9002:9001" # gRPC Port
healthcheck:
# The health check targets the internal port 8080.
test: [ "CMD", "curl", "-f", "http://localhost:8080/q/health/live" ]
interval: 15s
timeout: 5s
retries: 3
start_period: 15s
networks:
- lab-network
demo-client:
image: quarkus-lab/demo-client:${TAG:-latest}
build:
context: ./demo-client
dockerfile: Dockerfile
container_name: demo-client
ports:
- "8082:80"
depends_on:
server-jvm:
condition: service_healthy
server-native:
condition: service_healthy
networks:
- lab-network
networks:
lab-network:
driver: bridge