github.com/google/trillian-examples@v0.0.0-20240520080811-0d40d35cef0e/clone/cmd/sumdbverify/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:
    19      build:
    20        context: ../../..
    21        dockerfile: ./clone/cmd/sumdbclone/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        "--poll_interval=15m",
    29      ]
    30      restart: always
    31      depends_on:
    32        db:
    33          condition: service_healthy
    34  
    35    verify:
    36      build:
    37        context: ../../..
    38        dockerfile: ./clone/cmd/sumdbverify/Dockerfile
    39      command: [
    40        "--alsologtostderr",
    41        "--mysql_uri=${MARIADB_USER}:${MARIADB_PASSWORD}@tcp(db:3306)/${MARIADB_DATABASE}",
    42        "--poll_interval=15m",
    43      ]
    44      restart: always
    45      depends_on:
    46        - clone