github.com/pingcap/br@v5.3.0-alpha.0.20220125034240-ec59c7b6ce30+incompatible/compatibility/backup_cluster.yaml (about)

     1  ---
     2  # Source: tidb-docker-compose/templates/docker-compose.yml
     3  version: '3.2'
     4  
     5  services:
     6    control:
     7      image: control:nightly
     8      build:
     9        context: ../
    10        dockerfile: ./docker/Dockerfile
    11      volumes:
    12        - /tmp/br/docker/backup_data/${TAG}:/data
    13        - /tmp/br/docker/backup_logs/${TAG}:/tmp
    14        - /tmp/br/docker/backup_logs/${TAG}:/logs
    15        - ../bin:/go/src/github.com/pingcap/br/bin
    16        - ./prepare_data:/prepare_data
    17      command: -c "/usr/bin/tail -f /dev/null"
    18      environment:
    19        TAG: ${TAG}
    20      depends_on:
    21        - "tidb"
    22      restart: on-failure
    23      env_file:
    24        - ../docker/minio.env
    25  
    26    pd0:
    27      image: pingcap/pd:${TAG}
    28      ports:
    29        - 237${PORT_SUFFIX}:2379
    30      volumes:
    31        - ../docker/config/pd.toml:/pd.toml:ro
    32        - /tmp/br/docker/backup_data/${TAG}:/data
    33        - /tmp/br/docker/backup_logs/${TAG}:/logs
    34      command:
    35        - --name=pd0
    36        - --client-urls=http://0.0.0.0:2379
    37        - --peer-urls=http://0.0.0.0:2380
    38        - --advertise-client-urls=http://pd0:2379
    39        - --advertise-peer-urls=http://pd0:2380
    40        - --initial-cluster=pd0=http://pd0:2380
    41        - --data-dir=/data/pd0
    42        - --config=/pd.toml
    43        - --log-file=/logs/pd0.log
    44      # sysctls:
    45      #   net.core.somaxconn: 32768
    46      # ulimits:
    47      #   nofile:
    48      #     soft: 1000000
    49      #     hard: 1000000
    50      restart: on-failure
    51  
    52    tikv0:
    53      image: pingcap/tikv:${TAG}
    54      volumes:
    55        - ../docker/config/tikv.toml:/tikv.toml:ro
    56        - /tmp/br/docker/backup_data/${TAG}:/data
    57        - /tmp/br/docker/backup_logs/${TAG}:/logs
    58      command:
    59        - --addr=0.0.0.0:20160
    60        - --advertise-addr=tikv0:20160
    61        - --data-dir=/data/tikv0
    62        - --pd=pd0:2379
    63        - --config=/tikv.toml
    64        - --log-file=/logs/tikv0.log
    65      depends_on:
    66        - "pd0"
    67      # sysctls:
    68      #   net.core.somaxconn: 32768
    69      # ulimits:
    70      #   nofile:
    71      #     soft: 1000000
    72      #     hard: 1000000
    73      restart: on-failure
    74      env_file:
    75        - ../docker/minio.env
    76  
    77    tidb:
    78      image: pingcap/tidb:${TAG}
    79      ports:
    80        - 400${PORT_SUFFIX}:4000
    81        - 1008${PORT_SUFFIX}:10080
    82      volumes:
    83        - ../docker/config/tidb.toml:/tidb.toml:ro
    84        - /tmp/br/docker/backup_logs/${TAG}:/logs
    85        - ./credentials:/credentials
    86      command:
    87        - --store=tikv
    88        - --path=pd0:2379
    89        - --config=/tidb.toml
    90        - --log-file=/logs/tidb.log
    91        - --advertise-address=tidb
    92      depends_on:
    93        - "tikv0"
    94      restart: on-failure
    95      env_file:
    96        - ../docker/gcs.env
    97  
    98    minio:
    99      image: minio/minio
   100      ports:
   101        - 2492${PORT_SUFFIX}:24927
   102      volumes:
   103        - /tmp/br/docker/data/s3:/data/s3
   104      command:
   105        - server
   106        - --address=:24927
   107        - /data/s3
   108      env_file:
   109        - ../docker/minio.env
   110  
   111    gcs:
   112      image: fsouza/fake-gcs-server
   113      ports:
   114        - 2081${PORT_SUFFIX}:20818
   115      volumes:
   116        - /tmp/br/docker/backup_data/gcs:/data/gcs
   117      command:
   118        - -scheme=http
   119        - -host=gcs
   120        - -port=20818
   121        - -filesystem-root=/data/gcs
   122        - -public-host=gcs:20818
   123  
   124    # we need a oauth server for gcs test
   125    oauth:
   126      image: 3pointer/fake-gcs-oauth
   127      ports:
   128        - 500${PORT_SUFFIX}:5000