-
Notifications
You must be signed in to change notification settings - Fork 378
/
docker-compose.yml
50 lines (50 loc) · 1.29 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
version: '3.1'
services:
mysql:
build:
context: ../..
dockerfile: ./examples/deployment/docker/db_server/Dockerfile
environment:
- MYSQL_ROOT_PASSWORD=zaphod
- MYSQL_DATABASE=test
- MYSQL_USER=test
- MYSQL_PASSWORD=zaphod
restart: always # keep the MySQL server running
trillian-log-server:
build:
context: ../..
dockerfile: examples/deployment/docker/log_server/Dockerfile
args:
- GOFLAGS
command: [
"--storage_system=mysql",
"--mysql_uri=test:zaphod@tcp(mysql:3306)/test",
"--rpc_endpoint=0.0.0.0:8090",
"--http_endpoint=0.0.0.0:8091",
"--alsologtostderr",
]
restart: always # retry while mysql is starting up
ports:
- "8090:8090"
- "8091:8091"
depends_on:
- mysql
trillian-log-signer:
build:
context: ../..
dockerfile: examples/deployment/docker/log_signer/Dockerfile
args:
- GOFLAGS
command: [
"--storage_system=mysql",
"--mysql_uri=test:zaphod@tcp(mysql:3306)/test",
"--rpc_endpoint=0.0.0.0:8090",
"--http_endpoint=0.0.0.0:8091",
"--force_master",
"--alsologtostderr",
]
restart: always # retry while mysql is starting up
ports:
- "8092:8091"
depends_on:
- mysql