forked from google/keytransparency
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
174 lines (167 loc) · 4.52 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
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
version: "3"
services:
prometheus:
depends_on:
- kt-server
- kt-signer
image: us.gcr.io/key-transparency/prometheus
build:
context: .
dockerfile: deploy/prometheus/Dockerfile
restart: always
ports:
- 9090:9090
db:
image: us.gcr.io/key-transparency/db
build:
context: ../.
dockerfile: keytransparency/deploy/mysql-trillian/Dockerfile
restart: always
environment:
MYSQL_PASSWORD: zaphod
MYSQL_USER: test
MYSQL_DATABASE: test
MYSQL_RANDOM_ROOT_PASSWORD: "yes"
trillian-log:
depends_on:
- db
image: us.gcr.io/key-transparency/trillian_log_server
build:
context: ../trillian
dockerfile: server/trillian_log_server/Dockerfile
restart: always
ports:
- "8090:8090" # gRPC
- "8091:8091" # HTTP & Metrics
entrypoint:
- /go/bin/trillian_log_server
- --mysql_uri=test:zaphod@tcp(db:3306)/test
- --rpc_endpoint=0.0.0.0:8090
- --http_endpoint=0.0.0.0:8091
- --alsologtostderr
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8091/metrics"]
interval: 30s
timeout: 30s
retries: 3
trillian-log-signer:
depends_on:
- db
image: us.gcr.io/key-transparency/trillian_log_signer
build:
context: ../trillian
dockerfile: server/trillian_log_signer/Dockerfile
restart: always
ports:
- "8092:8091" # HTTP & Metrics
entrypoint:
- /go/bin/trillian_log_signer
- --mysql_uri=test:zaphod@tcp(db:3306)/test
- --http_endpoint=0.0.0.0:8091
- --sequencer_guard_window=0s
- --sequencer_interval=1s
- --num_sequencers=1
- --batch_size=50
- --force_master=true
- --alsologtostderr
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8091/metrics"]
interval: 30s
timeout: 30s
retries: 3
trillian-map:
depends_on:
- db
image: us.gcr.io/key-transparency/trillian_map_server
build:
context: ../trillian
dockerfile: server/trillian_map_server/Dockerfile
restart: always
ports:
- "8093:8090" # gRPC
- "8094:8091" # HTTP & Metrics
entrypoint:
- /go/bin/trillian_map_server
- --mysql_uri=test:zaphod@tcp(db:3306)/test
- --rpc_endpoint=0.0.0.0:8090
- --http_endpoint=0.0.0.0:8091
- --alsologtostderr
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8091/metrics"]
interval: 30s
timeout: 30s
retries: 3
kt-server:
depends_on:
- db
- trillian-log
- trillian-map
build:
context: ..
dockerfile: ./keytransparency/cmd/keytransparency-server/Dockerfile
image: us.gcr.io/key-transparency/keytransparency-server
restart: always
ports:
- "8080:8080" # json & grpc
- "8081:8081" # metrics
entrypoint:
- /go/bin/keytransparency-server
- --addr=0.0.0.0:8080
- --db=test:zaphod@tcp(db:3306)/test
- --log-id=$LOG_ID
- --log-url=trillian-log:8090
- --map-id=$MAP_ID
- --map-url=trillian-map:8090
- --vrf=/kt/vrf-key.pem
- --tls-key=/kt/server.key
- --tls-cert=/kt/server.crt
- --alsologtostderr
- --v=5
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/debug/var"]
interval: 30s
timeout: 10s
retries: 5
kt-signer:
depends_on:
- db
- trillian-log
- trillian-map
build:
context: ..
dockerfile: ./keytransparency/cmd/keytransparency-sequencer/Dockerfile
image: us.gcr.io/key-transparency/keytransparency-sequencer
restart: always
entrypoint:
- /go/bin/keytransparency-sequencer
- --db=test:zaphod@tcp(db:3306)/test
- --log-id=$LOG_ID
- --log-url=trillian-log:8090
- --map-id=$MAP_ID
- --map-url=trillian-map:8090
- --min-period=5s
- --max-period=5m
- --alsologtostderr
- --v=5
kt-monitor:
depends_on:
- kt-server
- kt-signer
build:
context: ..
dockerfile: ./keytransparency/cmd/keytransparency-monitor/Dockerfile
entrypoint:
- /go/bin/keytransparency-monitor
- --addr=0.0.0.0:8099
- --kt-url=kt-server:8080
- --poll-period=5s
- --tls-key=genfiles/server.key
- --tls-cert=genfiles/server.crt
- --sign-key=/kt/monitor_sign-key.pem
- --password=towel
- --alsologtostderr
- --v=3
image: us.gcr.io/key-transparency/keytransparency-monitor
restart: always
ports:
- "8099:8099" # gRPC / HTTPS