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
|
version: "3.1"
services:
db:
container_name: ctfe-db
image: mariadb
restart: always
environment:
- MYSQL_ROOT_PASSWORD=zaphod
- MYSQL_DATABASE=test
- MYSQL_USER=test
- MYSQL_PASSWORD=zaphod
ports:
- "3306:3306"
healthcheck:
test: mysql --user=$$MYSQL_USER --password=$$MYSQL_PASSWORD --silent --execute "SHOW DATABASES;"
interval: 3s
timeout: 2s
retries: 5
trillian-log-server:
image: gcr.io/trillian-opensource-ci/log_server
command: [
"--storage_system=mysql",
"--mysql_uri=test:zaphod@tcp(db:3306)/test",
"--rpc_endpoint=0.0.0.0:8090",
"--http_endpoint=0.0.0.0:8091",
"--alsologtostderr",
]
restart: always
ports:
- "8090:8090"
- "8091:8091"
depends_on:
- db
trillian-log-signer:
image: gcr.io/trillian-opensource-ci/log_signer
command: [
"--storage_system=mysql",
"--mysql_uri=test:zaphod@tcp(db:3306)/test",
"--rpc_endpoint=0.0.0.0:8090",
"--http_endpoint=0.0.0.0:8091",
"--force_master",
"--alsologtostderr",
]
restart: always
ports:
- "8092:8091"
depends_on:
- db
- trillian-log-server
ctfe:
image: gcr.io/trillian-opensource-ci/ctfe
profiles: ["frontend"]
command: [
"--log_rpc_server=trillian-log-server:8090",
"--log_config=/ctfe-config/ct_server.cfg",
"--http_endpoint=0.0.0.0:8091",
"--alsologtostderr",
]
restart: always
ports:
- "8080:8091"
volumes:
- ctfe_config:/ctfe-config:ro
depends_on:
- db
- trillian-log-server
volumes:
ctfe_config:
external: true
|