github.com/pingcap/tiflow@v0.0.0-20240520035814-5bf52d54e205/deployments/engine/docker-compose/1m3e.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.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-0: 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-0" 36 - "--addr=0.0.0.0:10241" 37 - "--advertise-addr=server-executor-0:10241" 38 - "--join=server-master:10240" 39 - "--config=/config.toml" 40 - "--log-file=/log/server-executor-0.log" 41 depends_on: 42 - "server-master" 43 extra_hosts: 44 - "host.docker.internal:host-gateway" 45 restart: unless-stopped 46 47 server-executor-1: 48 image: dataflow:test 49 container_name: server-executor-1 50 volumes: 51 - ./config/executor.toml:/config.toml 52 - /tmp/tiflow_engine_test:/log 53 command: 54 - "/tiflow" 55 - "executor" 56 - "--name=server-executor-1" 57 - "--addr=0.0.0.0:10241" 58 - "--advertise-addr=server-executor-1:10241" 59 - "--join=server-master:10240" 60 - "--config=/config.toml" 61 - "--log-file=/log/server-executor-1.log" 62 depends_on: 63 - "server-master" 64 extra_hosts: 65 - "host.docker.internal:host-gateway" 66 restart: unless-stopped 67 68 server-executor-2: 69 image: dataflow:test 70 container_name: server-executor-2 71 volumes: 72 - ./config/executor.toml:/config.toml 73 - /tmp/tiflow_engine_test:/log 74 command: 75 - "/tiflow" 76 - "executor" 77 - "--name=server-executor-2" 78 - "--addr=0.0.0.0:10241" 79 - "--advertise-addr=server-executor-2:10241" 80 - "--join=server-master:10240" 81 - "--config=/config.toml" 82 - "--log-file=/log/server-executor-2.log" 83 depends_on: 84 - "server-master" 85 extra_hosts: 86 - "host.docker.internal:host-gateway" 87 restart: unless-stopped 88 89 etcd-standalone: 90 image: quay.io/coreos/etcd 91 container_name: etcd-standalone 92 command: 93 - "etcd" 94 - "--listen-client-urls=http://0.0.0.0:2379" 95 - "--advertise-client-urls=http://etcd-standalone:2379" 96 ports: 97 - "12479:2379" 98 99 mysql-standalone: 100 image: mysql:8.0 101 container_name: mysql-standalone 102 command: --default-authentication-plugin=mysql_native_password 103 environment: 104 MYSQL_ALLOW_EMPTY_PASSWORD: "yes" 105 volumes: 106 - './config/mysql_meta.cnf:/etc/my.cnf' 107 ports: 108 - "3336:3306" 109 healthcheck: 110 test: mysql -h127.0.0.1 -P3306 -e "show databases" 111 interval: 10s 112 timeout: 600s 113 retries: 60