-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
67 lines (63 loc) · 1.62 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
version: '3.7'
services:
# init-container
# generate certifiactes for server and client
gen-certificates:
image: mrjoshlab/udp2grpc:latest
command:
- "gen-certificates"
# server ip address
- "--ip"
- "127.0.0.1"
# certificates directory
- "--dir"
- "/cert"
volumes:
- "$PWD/cert/:/cert"
# udp2grpc server container
udp2grpc-server:
image: mrjoshlab/udp2grpc:latest
ports:
- "52935:52935/tcp"
command:
- "server"
# grpc listen address
- "-l0.0.0.0:52935"
# remote conn address
- "-r127.0.0.1:51820"
# tls certificate public file
- "--tls-cert-file"
- "/cert/server.crt"
# tls certificate pivate file
- "--tls-key-file"
- "/cert/server.key"
# super secure password here
- "--password=super-secure-password"
volumes:
- "$PWD/cert/:/cert"
restart: unless-stopped
depends_on:
gen-certificates:
condition: service_completed_successfully
# udp2grpc client container
udp2grpc-client:
image: mrjoshlab/udp2grpc:latest
ports:
- "51820:51820/udp"
command:
- "client"
# local udp connection address
- "-l0.0.0.0:51820"
# server ip address with port
- "-r127.0.0.1:52935"
# tls certificate public file
- "--tls-cert-file"
- "/cert/server.crt"
# super secure password here
- "--password=super-secure-password"
volumes:
- "$PWD/cert/server.crt:/cert/server.crt"
restart: unless-stopped
depends_on:
gen-certificates:
condition: service_completed_successfully