...
1version: "3.1"
2
3services:
4 db:
5 container_name: ctfe-db
6 image: mariadb
7 restart: always
8 environment:
9 - MYSQL_ROOT_PASSWORD=zaphod
10 - MYSQL_DATABASE=test
11 - MYSQL_USER=test
12 - MYSQL_PASSWORD=zaphod
13 ports:
14 - "3306:3306"
15 healthcheck:
16 test: mysql --user=$$MYSQL_USER --password=$$MYSQL_PASSWORD --silent --execute "SHOW DATABASES;"
17 interval: 3s
18 timeout: 2s
19 retries: 5
20
21 trillian-log-server:
22 image: gcr.io/trillian-opensource-ci/log_server
23 command: [
24 "--storage_system=mysql",
25 "--mysql_uri=test:zaphod@tcp(db:3306)/test",
26 "--rpc_endpoint=0.0.0.0:8090",
27 "--http_endpoint=0.0.0.0:8091",
28 "--alsologtostderr",
29 ]
30 restart: always
31 ports:
32 - "8090:8090"
33 - "8091:8091"
34 depends_on:
35 - db
36
37 trillian-log-signer:
38 image: gcr.io/trillian-opensource-ci/log_signer
39 command: [
40 "--storage_system=mysql",
41 "--mysql_uri=test:zaphod@tcp(db:3306)/test",
42 "--rpc_endpoint=0.0.0.0:8090",
43 "--http_endpoint=0.0.0.0:8091",
44 "--force_master",
45 "--alsologtostderr",
46 ]
47 restart: always
48 ports:
49 - "8092:8091"
50 depends_on:
51 - db
52 - trillian-log-server
53
54 ctfe:
55 image: gcr.io/trillian-opensource-ci/ctfe
56 profiles: ["frontend"]
57 command: [
58 "--log_rpc_server=trillian-log-server:8090",
59 "--log_config=/ctfe-config/ct_server.cfg",
60 "--http_endpoint=0.0.0.0:8091",
61 "--alsologtostderr",
62 ]
63 restart: always
64 ports:
65 - "8080:8091"
66 volumes:
67 - ctfe_config:/ctfe-config:ro
68 depends_on:
69 - trillian-log-server
70
71volumes:
72 ctfe_config:
73 external: true
View as plain text