-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (46 loc) · 911 Bytes
/
docker-compose.yml
File metadata and controls
46 lines (46 loc) · 911 Bytes
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.6'
services:
server1:
image: tanmayb/grpc-book-server:latest
ports:
- 127.0.0.1:50051:50051
environment:
- PORT=50051
- SSL_CERT=/run/secrets/nginx.cert
- SSL_KEY=/run/secrets/nginx.key
secrets:
- nginx.cert
- nginx.key
server2:
image: tanmayb/grpc-book-server:latest
ports:
- 127.0.0.1:50052:50052
environment:
- PORT=50052
- SSL_CERT=/run/secrets/nginx.cert
- SSL_KEY=/run/secrets/nginx.key
secrets:
- nginx.cert
- nginx.key
client:
image: tanmayb/grpc-book-client:latest
environment:
- SSL_CERT=/run/secrets/nginx.cert
- SRV_URL=nginx
- SRV_PORT=1443
secrets:
- nginx.cert
nginx:
image: nginx:1.13.11
ports:
- 127.0.0.1:1443:1443
volumes:
- ./config/nginx.conf:/etc/nginx/nginx.conf
secrets:
- nginx.cert
- nginx.key
secrets:
nginx.cert:
file: ./cert/nginx.cert
nginx.key:
file: ./cert/nginx.key