github.com/google/trillian-examples@v0.0.0-20240520080811-0d40d35cef0e/helloworld/docker-compose.yaml (about) 1 version: "3.1" 2 3 services: 4 db: 5 image: mariadb:10.6 6 restart: always 7 environment: 8 - MARIADB_ROOT_PASSWORD=zaphod 9 - MARIADB_DATABASE=test 10 - MARIADB_USER=test 11 - MARIADB_PASSWORD=zaphod 12 ports: 13 - "3306:3306" 14 healthcheck: 15 test: mariadb --user=$$MARIADB_USER --password=$$MARIADB_PASSWORD --silent --execute "SHOW DATABASES;" 16 interval: 3s 17 timeout: 2s 18 retries: 5 19 20 trillian-log-server: 21 image: gcr.io/trillian-opensource-ci/log_server 22 command: [ 23 "--storage_system=mysql", 24 "--mysql_uri=test:zaphod@tcp(db:3306)/test", 25 "--rpc_endpoint=0.0.0.0:50054", 26 "--http_endpoint=0.0.0.0:50055", 27 "--alsologtostderr", 28 ] 29 restart: always 30 ports: 31 - "50054:50054" 32 - "50055:50055" 33 depends_on: 34 - db 35 36 trillian-log-signer: 37 image: gcr.io/trillian-opensource-ci/log_signer 38 command: [ 39 "--storage_system=mysql", 40 "--mysql_uri=test:zaphod@tcp(db:3306)/test", 41 "--sequencer_interval=1s", 42 "--batch_size=500", 43 "--num_sequencers=1", 44 "--force_master", 45 "--rpc_endpoint=0.0.0.0:8090", 46 "--http_endpoint=0.0.0.0:8091", 47 "--alsologtostderr", 48 ] 49 restart: always 50 ports: 51 - "8092:8091" 52 depends_on: 53 - db 54 - trillian-log-server 55