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

     1  version: '2.3'
     2  
     3  services:
     4      dm_upstream_mysql:
     5          image: mysql:5.7
     6          container_name: dm_upstream_mysql
     7          ports:
     8              - "3306:3306"
     9          volumes:
    10              - ./config/mysql.cnf:/etc/mysql/conf.d/mysql.cnf
    11          environment:
    12              MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
    13  
    14      dm_upstream_mysql2:
    15          image: mysql:8.0
    16          container_name: dm_upstream_mysql2
    17          command: --default-authentication-plugin=mysql_native_password
    18          ports:
    19              - "3307:3306"
    20          environment:
    21              MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
    22  
    23      dm_downstream_pd:
    24          image: pingcap/pd:nightly
    25          container_name: dm_downstream_pd
    26          ports:
    27              - "2379"
    28          command:
    29              - --name=dm_downstream_pd
    30              - --client-urls=http://0.0.0.0:2379
    31              - --peer-urls=http://0.0.0.0:2380
    32              - --advertise-client-urls=http://dm_downstream_pd:2379
    33              - --advertise-peer-urls=http://dm_downstream_pd:2380
    34              - --initial-cluster=dm_downstream_pd=http://dm_downstream_pd:2380
    35              - --data-dir=/data/dm_downstream_pd
    36          restart: on-failure
    37  
    38      dm_downstream_tikv:
    39          image: pingcap/tikv:nightly
    40          container_name: dm_downstream_tikv
    41          command:
    42              - --addr=0.0.0.0:20160
    43              - --advertise-addr=dm_downstream_tikv:20160
    44              - --pd=dm_downstream_pd:2379
    45          depends_on:
    46              - "dm_downstream_pd"
    47          restart: on-failure
    48  
    49      dm_downstream_tidb:
    50          image: pingcap/tidb:nightly
    51          container_name: dm_downstream_tidb
    52          ports:
    53              - "4000:4000"
    54              - "10080:10080"
    55          volumes:
    56              - ./config/tidb.toml:/tidb.toml
    57          command:
    58              - --store=tikv
    59              - --path=dm_downstream_pd:2379
    60              - --advertise-address=dm_downstream_tidb
    61              - --config=/tidb.toml
    62          depends_on:
    63              - "dm_downstream_tikv"
    64          restart: on-failure