pingcap / tidb-docker-compose

Apache License 2.0
351 stars 155 forks source link

Add support for DM #98

Closed dveeden closed 1 year ago

dveeden commented 3 years ago

Closes: #97

I added the two template config files with the logging commented out and copied one of the compose files and added this:

  dm-master:
    image: pingcap/dm:latest
    volumes:
      - ./config/dm-master.toml:/dm-master.toml:ro
      - ./logs:/logs
    command:
      - /dm-master
      - --log-file=/logs/dm-master.log
      - --config=/dm-master.toml
    restart: on-failure
  dm-worker0:
    image: pingcap/dm:latest
    volumes:
      - ./config/dm-worker.toml:/dm-worker.toml:ro
      - ./logs:/logs
    command:
      - /dm-worker
      - --log-file=/logs/dm-worker0.log
      - --config=/dm-worker.toml
    restart: on-failure

Not sure what else is needed to get this to properly support DM

tisonkun commented 3 years ago

Hi @dveeden, thanks for your pull request! May you add a section of doc how this changes take in effect or at least comment on this pull request?

tisonkun commented 3 years ago

.. also cc @kennytm & @alex-quan-001

tisonkun commented 3 years ago

This is still a draft and I may not the person to review it :P

dveeden commented 1 year ago

They way forward is to use TiUP Playground, TiUP Cluster, Kubernetes or TiDB Cloud.