github.com/pingcap/tiflow@v0.0.0-20240520035814-5bf52d54e205/deployments/engine/docker-compose/1m1e.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: 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 restart: "on-failure" 46 extra_hosts: 47 - "host.docker.internal:host-gateway" 48 environment: 49 - TZ=UTC 50 restart: unless-stopped 51 52 etcd-standalone: 53 image: quay.io/coreos/etcd 54 container_name: etcd-standalone 55 command: 56 - "etcd" 57 - "--listen-client-urls=http://0.0.0.0:2379" 58 - "--advertise-client-urls=http://etcd-standalone:2379" 59 ports: 60 - "12479:2379" 61 62 mysql-standalone: 63 image: mysql:8.0 64 container_name: mysql-standalone 65 command: --default-authentication-plugin=mysql_native_password 66 environment: 67 MYSQL_ALLOW_EMPTY_PASSWORD: "yes" 68 volumes: 69 - './config/mysql_meta.cnf:/etc/my.cnf' 70 ports: 71 - "3336:3306" 72 healthcheck: 73 test: mysql -h127.0.0.1 -P3306 -e "show databases" 74 interval: 10s 75 timeout: 600s 76 retries: 60