github.com/google/trillian-examples@v0.0.0-20240520080811-0d40d35cef0e/clone/cmd/ctclone/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: ${MARIADB_ROOT_PASSWORD}
     9        MARIADB_DATABASE: ${MARIADB_DATABASE}
    10        MARIADB_USER: ${MARIADB_USER}
    11        MARIADB_PASSWORD: ${MARIADB_PASSWORD}
    12      healthcheck:
    13        test: mariadb --user=$$MARIADB_USER --password=$$MARIADB_PASSWORD --silent --execute "SHOW DATABASES;"
    14        interval: 3s
    15        timeout: 2s
    16        retries: 5
    17  
    18    clone-xenon2022:
    19      build:
    20        context: ../../..
    21        dockerfile: ./clone/cmd/ctclone/Dockerfile
    22      command: [
    23        "--alsologtostderr",
    24        "--v=2",
    25        "--mysql_uri=${MARIADB_USER}:${MARIADB_PASSWORD}@tcp(db:3306)/${MARIADB_DATABASE}",
    26        "--write_batch_size=1024",
    27        "--workers=4",
    28        "--log_url=https://ct.googleapis.com/logs/xenon2022/",
    29      ]
    30      restart: always
    31      depends_on:
    32        db:
    33          condition: service_healthy