This repository has been archived by the owner on Apr 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 99
/
docker-compose-tls.yaml
82 lines (79 loc) · 2.44 KB
/
docker-compose-tls.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
77
78
79
80
81
82
version: '3'
services:
gubernator-1:
image: ghcr.io/mailgun/gubernator:latest
entrypoint: "/gubernator"
environment:
# Basic member-list config
- GUBER_GRPC_ADDRESS=0.0.0.0:81
- GUBER_HTTP_ADDRESS=0.0.0.0:80
- GUBER_ADVERTISE_ADDRESS=gubernator-1:81
- GUBER_MEMBERLIST_KNOWN_NODES=gubernator-1
# TLS config
- GUBER_TLS_CA=/etc/tls/ca.pem
- GUBER_TLS_KEY=/etc/tls/gubernator.key
- GUBER_TLS_CERT=/etc/tls/gubernator.pem
- GUBER_TLS_CLIENT_AUTH=require-and-verify
ports:
- "9081:81"
- "9080:80"
volumes:
- ${PWD}/contrib/certs:/etc/tls
gubernator-2:
image: ghcr.io/mailgun/gubernator:latest
entrypoint: "/gubernator"
environment:
# Basic member-list config
- GUBER_GRPC_ADDRESS=0.0.0.0:81
- GUBER_HTTP_ADDRESS=0.0.0.0:80
- GUBER_ADVERTISE_ADDRESS=gubernator-2:81
- GUBER_MEMBERLIST_KNOWN_NODES=gubernator-1
# TLS config
- GUBER_TLS_CA=/etc/tls/ca.pem
- GUBER_TLS_KEY=/etc/tls/gubernator.key
- GUBER_TLS_CERT=/etc/tls/gubernator.pem
- GUBER_TLS_CLIENT_AUTH=require-and-verify
ports:
- "9181:81"
- "9180:80"
volumes:
- ${PWD}/contrib/certs:/etc/tls
gubernator-3:
image: ghcr.io/mailgun/gubernator:latest
entrypoint: "/gubernator"
environment:
# Basic member-list config
- GUBER_GRPC_ADDRESS=0.0.0.0:81
- GUBER_HTTP_ADDRESS=0.0.0.0:80
- GUBER_ADVERTISE_ADDRESS=gubernator-3:81
- GUBER_MEMBERLIST_KNOWN_NODES=gubernator-1
# TLS config
- GUBER_TLS_CA=/etc/tls/ca.pem
- GUBER_TLS_KEY=/etc/tls/gubernator.key
- GUBER_TLS_CERT=/etc/tls/gubernator.pem
- GUBER_TLS_CLIENT_AUTH=require-and-verify
ports:
- "9281:81"
- "9280:80"
volumes:
- ${PWD}/contrib/certs:/etc/tls
gubernator-4:
image: ghcr.io/mailgun/gubernator:latest
entrypoint: "/gubernator"
environment:
# Basic member-list config
- GUBER_DEBUG=true
- GUBER_GRPC_ADDRESS=0.0.0.0:81
- GUBER_HTTP_ADDRESS=0.0.0.0:80
- GUBER_ADVERTISE_ADDRESS=gubernator-4:81
- GUBER_MEMBERLIST_KNOWN_NODES=gubernator-1
# TLS config
- GUBER_TLS_CA=/etc/tls/ca.pem
- GUBER_TLS_KEY=/etc/tls/gubernator.key
- GUBER_TLS_CERT=/etc/tls/gubernator.pem
- GUBER_TLS_CLIENT_AUTH=require-and-verify
ports:
- "9381:81"
- "9380:80"
volumes:
- ${PWD}/contrib/certs:/etc/tls