github.com/pingcap/br@v5.3.0-alpha.0.20220125034240-ec59c7b6ce30+incompatible/docker-compose.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/data:/data
    13        - /tmp/br/docker/logs:/tmp
    14        - /tmp/br/docker/logs:/logs
    15        - ./bin:/go/src/github.com/pingcap/br/bin
    16      command: -c "/usr/bin/tail -f /dev/null"
    17      depends_on:
    18        - "tidb"
    19      restart: on-failure
    20      env_file:
    21        - ./docker/minio.env
    22  
    23    pd0:
    24      image: pingcap/pd:nightly
    25      ports:
    26        - "2379"
    27      volumes:
    28        - ./docker/config/pd.toml:/pd.toml:ro
    29        - /tmp/br/docker/data:/data
    30        - /tmp/br/docker/logs:/logs
    31      command:
    32        - --name=pd0
    33        - --client-urls=http://0.0.0.0:2379
    34        - --peer-urls=http://0.0.0.0:2380
    35        - --advertise-client-urls=http://pd0:2379
    36        - --advertise-peer-urls=http://pd0:2380
    37        - --initial-cluster=pd0=http://pd0:2380
    38        - --data-dir=/data/pd0
    39        - --config=/pd.toml
    40        - --log-file=/logs/pd0.log
    41      # sysctls:
    42      #   net.core.somaxconn: 32768
    43      # ulimits:
    44      #   nofile:
    45      #     soft: 1000000
    46      #     hard: 1000000
    47      restart: on-failure
    48  
    49    tikv0:
    50      image: pingcap/tikv:nightly
    51      volumes:
    52        - ./docker/config/tikv.toml:/tikv.toml:ro
    53        - /tmp/br/docker/data:/data
    54        - /tmp/br/docker/logs:/logs
    55      command:
    56        - --addr=0.0.0.0:20160
    57        - --advertise-addr=tikv0:20160
    58        - --data-dir=/data/tikv0
    59        - --pd=pd0:2379
    60        - --config=/tikv.toml
    61        - --log-file=/logs/tikv0.log
    62      depends_on:
    63        - "pd0"
    64      # sysctls:
    65      #   net.core.somaxconn: 32768
    66      # ulimits:
    67      #   nofile:
    68      #     soft: 1000000
    69      #     hard: 1000000
    70      restart: on-failure
    71      env_file:
    72        - ./docker/minio.env
    73  
    74    tikv1:
    75      image: pingcap/tikv:nightly
    76      volumes:
    77        - ./docker/config/tikv.toml:/tikv.toml:ro
    78        - /tmp/br/docker/data:/data
    79        - /tmp/br/docker/logs:/logs
    80      command:
    81        - --addr=0.0.0.0:20160
    82        - --advertise-addr=tikv1:20160
    83        - --data-dir=/data/tikv1
    84        - --pd=pd0:2379
    85        - --config=/tikv.toml
    86        - --log-file=/logs/tikv1.log
    87      depends_on:
    88        - "pd0"
    89      # sysctls:
    90      #   net.core.somaxconn: 32768
    91      # ulimits:
    92      #   nofile:
    93      #     soft: 1000000
    94      #     hard: 1000000
    95      restart: on-failure
    96      env_file:
    97        - ./docker/minio.env
    98  
    99    tikv2:
   100      image: pingcap/tikv:nightly
   101      volumes:
   102        - ./docker/config/tikv.toml:/tikv.toml:ro
   103        - /tmp/br/docker/data:/data
   104        - /tmp/br/docker/logs:/logs
   105      command:
   106        - --addr=0.0.0.0:20160
   107        - --advertise-addr=tikv2:20160
   108        - --data-dir=/data/tikv2
   109        - --pd=pd0:2379
   110        - --config=/tikv.toml
   111        - --log-file=/logs/tikv2.log
   112      depends_on:
   113        - "pd0"
   114      # sysctls:
   115      #   net.core.somaxconn: 32768
   116      # ulimits:
   117      #   nofile:
   118      #     soft: 1000000
   119      #     hard: 1000000
   120      restart: on-failure
   121      env_file:
   122        - ./docker/minio.env
   123  
   124    tikv3:
   125      image: pingcap/tikv:nightly
   126      volumes:
   127        - ./docker/config/tikv.toml:/tikv.toml:ro
   128        - /tmp/br/docker/data:/data
   129        - /tmp/br/docker/logs:/logs
   130      command:
   131        - --addr=0.0.0.0:20160
   132        - --advertise-addr=tikv3:20160
   133        - --data-dir=/data/tikv3
   134        - --pd=pd0:2379
   135        - --config=/tikv.toml
   136        - --log-file=/logs/tikv3.log
   137      depends_on:
   138        - "pd0"
   139      # sysctls:
   140      #   net.core.somaxconn: 32768
   141      # ulimits:
   142      #   nofile:
   143      #     soft: 1000000
   144      #     hard: 1000000
   145      restart: on-failure
   146      env_file:
   147        - ./docker/minio.env
   148  
   149    tikv4:
   150      image: pingcap/tikv:nightly
   151      volumes:
   152        - ./docker/config/tikv.toml:/tikv.toml:ro
   153        - /tmp/br/docker/data:/data
   154        - /tmp/br/docker/logs:/logs
   155      command:
   156        - --addr=0.0.0.0:20160
   157        - --advertise-addr=tikv4:20160
   158        - --data-dir=/data/tikv4
   159        - --pd=pd0:2379
   160        - --config=/tikv.toml
   161        - --log-file=/logs/tikv4.log
   162      depends_on:
   163        - "pd0"
   164      # sysctls:
   165      #   net.core.somaxconn: 32768
   166      # ulimits:
   167      #   nofile:
   168      #     soft: 1000000
   169      #     hard: 1000000
   170      restart: on-failure
   171      env_file:
   172        - ./docker/minio.env
   173  
   174    tidb:
   175      image: pingcap/tidb:nightly
   176      ports:
   177        - "4000"
   178        - "10080"
   179      volumes:
   180        - ./docker/config/tidb.toml:/tidb.toml:ro
   181        - /tmp/br/docker/logs:/logs
   182      command:
   183        - --store=tikv
   184        - --path=pd0:2379
   185        - --config=/tidb.toml
   186        - --log-file=/logs/tidb.log
   187        - --advertise-address=tidb
   188      depends_on:
   189        - "tikv0"
   190        - "tikv1"
   191        - "tikv2"
   192        - "tikv3"
   193        - "tikv4"
   194      # sysctls:
   195      #   net.core.somaxconn: 32768
   196      # ulimits:
   197      #   nofile:
   198      #     soft: 1000000
   199      #     hard: 1000000
   200      restart: on-failure
   201  
   202    minio:
   203      image: minio/minio
   204      ports:
   205        - 24927:24927
   206      volumes:
   207        - /tmp/br/docker/data/s3:/data/s3
   208      command: server --address=:24927 /data/s3
   209      env_file:
   210        - ./docker/minio.env
   211  
   212    gcs:
   213      image: fsouza/fake-gcs-server
   214      ports:
   215        - 20818:20818
   216      volumes:
   217        - /tmp/br/docker/data/gcs:/data/gcs
   218      command: -scheme http -host gcs -port 20818 -filesystem-root /data/gcs -public-host gcs:20818
   219  
   220    # we need a oauth server for gcs test
   221    oauth:
   222      image: 3pointer/fake-gcs-oauth
   223      ports:
   224        - 5000:5000