-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
76 lines (71 loc) · 1.73 KB
/
docker-compose.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
64
65
66
67
68
69
70
71
72
73
74
75
76
services:
umay:
build:
context: .
dockerfile: Dockerfile
ports:
- "9994:9994"
volumes:
- ./config:/app/config
- ./certs:/app/certs
environment:
- UMAY_WORKER_THREADS=4
- UMAY_CLOSE_TIMEOUT=10
- UMAY_EXIT_TIMEOUT=10
- UMAY_SHUTDOWN_GRACE_PERIOD=10
- UMAY_SERVICE_0_NAME=default.default.serviceaccount.identity.umay.cluster.local
- UMAY_SERVICE_0_PORT=9994
- UMAY_SERVICE_0_CERT_PATH=/app/certs/crt.der
- UMAY_SERVICE_0_KEY_PATH=/app/certs/key.pem
- UMAY_SERVICE_0_CA_PATH=/app/certs/ca.pem
- UMAY_SERVICE_0_UPSTREAM_HOST=echo-backend
- UMAY_SERVICE_0_UPSTREAM_PORT=1994
- UMAY_SERVICE_0_DISCOVERY_TYPE=dns
- UMAY_SERVICE_0_DISCOVERY_REFRESH_INTERVAL=60
- UMAY_SERVICE_0_LOAD_BALANCER_SELECTION=round_robin
dns:
- 127.0.0.11
depends_on:
- echo-backend1
- echo-backend2
- echo-backend3
networks:
umay_network:
aliases:
- default.default.serviceaccount.identity.umay.cluster.local
echo-backend1:
build:
context: ./scripts
dockerfile: Dockerfile.echo
environment:
- SERVER_ID=1
- PORT=1994
networks:
umay_network:
aliases:
- echo-backend
echo-backend2:
build:
context: ./scripts
dockerfile: Dockerfile.echo
environment:
- SERVER_ID=2
- PORT=1994
networks:
umay_network:
aliases:
- echo-backend
echo-backend3:
build:
context: ./scripts
dockerfile: Dockerfile.echo
environment:
- SERVER_ID=3
- PORT=1994
networks:
umay_network:
aliases:
- echo-backend
networks:
umay_network:
name: umay_network