github.com/pingcap/tiflow@v0.0.0-20240520035814-5bf52d54e205/deployments/engine/docker-compose/1m1e_with_s3.yaml (about)

     1  version: "2.3"
     2  services:
     3    server-master:
     4      image: dataflow:test
     5      container_name: server-master-0
     6      volumes:
     7        - ./config/master_with_s3.toml:/config.toml
     8        - /tmp/tiflow_engine_test:/log
     9      command:
    10        - "/tiflow"
    11        - "master"
    12        - "--name=server-master"
    13        - "--addr=0.0.0.0:10240"
    14        - "--advertise-addr=server-master:10240"
    15        - "--config=/config.toml"
    16        - "--log-file=/log/server-master-0.log"
    17      ports:
    18        - "10240:10240"
    19      depends_on:
    20        "etcd-standalone":
    21          condition: service_started
    22        "mysql-standalone":
    23          condition: service_healthy
    24      restart: unless-stopped
    25  
    26    server-executor:
    27      image: dataflow:test
    28      container_name: server-executor-0
    29      volumes:
    30        - ./config/executor.toml:/config.toml
    31        - /tmp/tiflow_engine_test:/log
    32      command:
    33        - "/tiflow"
    34        - "executor"
    35        - "--name=server-executor"
    36        - "--addr=0.0.0.0:10241"
    37        - "--advertise-addr=server-executor:10241"
    38        - "--join=server-master:10240"
    39        - "--config=/config.toml"
    40        - "--log-file=/log/server-executor-0.log"
    41      ports:
    42        - "10241:10241"
    43      depends_on:
    44        - "server-master"
    45      extra_hosts:
    46        - "host.docker.internal:host-gateway"
    47      environment:
    48        - TZ=UTC
    49      restart: unless-stopped
    50  
    51    etcd-standalone:
    52      image: quay.io/coreos/etcd
    53      container_name: etcd-standalone
    54      command:
    55        - "etcd"
    56        - "--listen-client-urls=http://0.0.0.0:2379"
    57        - "--advertise-client-urls=http://etcd-standalone:2379"
    58      ports:
    59        - "12479:2379"
    60  
    61    mysql-standalone:
    62      image: mysql:8.0
    63      container_name: mysql-standalone
    64      command: --default-authentication-plugin=mysql_native_password
    65      environment:
    66        MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
    67      volumes:
    68        - './config/mysql_meta.cnf:/etc/my.cnf'
    69      ports:
    70        - "3336:3306"
    71      healthcheck:
    72        test: mysql -h127.0.0.1 -P3306 -e "show databases"
    73        interval: 10s
    74        timeout: 600s
    75        retries: 60
    76  
    77    minio-standalone:
    78      image: minio/minio
    79      container_name: minio-standalone
    80      command: server --console-address ":9001" /data
    81      ports:
    82        - "9000:9000"
    83        - "9001:9001"
    84      environment:
    85        MINIO_ROOT_USER: engine
    86        MINIO_ROOT_PASSWORD: engineSecret
    87      healthcheck:
    88        test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
    89        interval: 10s
    90        timeout: 60s
    91        retries: 6
    92    minio-createbuckets:
    93      image: minio/mc
    94      container_name: minio-createbuckets
    95      depends_on:
    96        - minio-standalone
    97      entrypoint: >
    98        /bin/sh -c "
    99        /usr/bin/mc alias set myminio http://minio-standalone:9000 engine engineSecret || exit 1;
   100        /usr/bin/mc mb myminio/engine-it || exit 1;
   101        /usr/bin/mc version enable myminio/engine-ut;
   102        exit 0;
   103        "