-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
48 lines (47 loc) · 1.03 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
version: "3.9"
services:
distribute:
image: lingen/java-grpc-sample-distributed:${TAG}
deploy:
mode: replicated
replicas: 1
endpoint_mode: dnsrr
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8080/healthy" ]
interval: 1m
timeout: 10s
retries: 3
start_period: 40s
networks:
- java-grpc
user:
image: lingen/java-grpc-sample-user:${TAG}
deploy:
mode: replicated
replicas: 2
endpoint_mode: dnsrr
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8080/healthy" ]
interval: 1m
timeout: 10s
retries: 3
start_period: 40s
networks:
- java-grpc
rest:
image: lingen/java-grpc-sample-rest:${TAG}
deploy:
replicas: 2
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8080/healthy" ]
interval: 1m
timeout: 10s
retries: 3
start_period: 40s
ports:
- "8080:8080"
networks:
- java-grpc
networks:
java-grpc:
name: java-grpc