github.com/matrixorigin/matrixone@v1.2.0/etc/launch-tae-compose/compose.yaml (about)

     1  version: '3.9'
     2  
     3  # docker compose extension fields
     4  # https://github.com/docker/compose/pull/5140
     5  # https://stackoverflow.com/questions/45805380/meaning-of-ampersand-in-docker-compose-yml-file
     6  x-mo-common: &mo-common
     7      build:
     8        context: ../../
     9        dockerfile: ./optools/images/Dockerfile
    10        args:
    11          GOPROXY: "https://proxy.golang.org,direct"
    12      image: matrixorigin/matrixone:latest
    13      volumes:
    14        - ../../etc/launch-tae-compose/config:/config
    15        - ../../test:/test
    16        - ../../docker-compose-log:/log
    17      restart: on-failure
    18      tty: true
    19  
    20  
    21  services:
    22    cn-0:
    23      container_name: cn-0
    24      <<: *mo-common
    25      entrypoint: ["/bin/bash","-c","set -euo pipefail; /mo-service -debug-http :12345 -cfg /config/cn-0.toml | tee /log/cn-0.log"]
    26      profiles:
    27        - launch
    28        - launch-multi-cn
    29      depends_on:
    30        - tn
    31      ports:
    32        - "6001:6001"
    33        - "6002"
    34        - "12345:12345"
    35      environment:
    36        - AWS_ACCESS_KEY_ID=minio
    37        - AWS_SECRET_ACCESS_KEY=minio123
    38        - mo_reuse_enable_checker=true
    39      networks:
    40        monet:
    41          aliases:
    42            - "cn0"
    43  
    44    cn-1:
    45      container_name: cn-1
    46      <<: *mo-common
    47      entrypoint: ["/bin/bash","-c","set -euo pipefail; /mo-service -debug-http :12345 -cfg /config/cn-1.toml | tee /log/cn-1.log"]
    48      depends_on:
    49        - tn
    50      ports:
    51        - "7001:6001"
    52        - "6002"
    53        - "22345:12345"
    54      profiles:
    55        - launch
    56        - launch-multi-cn
    57      environment:
    58        - AWS_ACCESS_KEY_ID=minio
    59        - AWS_SECRET_ACCESS_KEY=minio123
    60        - mo_reuse_enable_checker=true
    61      networks:
    62        monet:
    63          aliases:
    64            - "cn1"
    65  
    66    tn:
    67      container_name: tn
    68      <<: *mo-common
    69      entrypoint: ["/bin/bash","-c","set -euo pipefail; /mo-service -debug-http :12345 -cfg /config/tn.toml | tee /log/tn.log"]
    70      profiles:
    71        - launch
    72        - launch-multi-cn
    73      depends_on:
    74        - logservice
    75      ports:
    76        - "41010"
    77        - "32345:12345"
    78      environment:
    79        - AWS_ACCESS_KEY_ID=minio
    80        - AWS_SECRET_ACCESS_KEY=minio123
    81        - mo_reuse_enable_checker=true
    82      networks:
    83        monet:
    84          aliases:
    85            - "tn"
    86  
    87    logservice:
    88      container_name: logservice
    89      <<: *mo-common
    90      profiles:
    91        - launch
    92        - launch-multi-cn
    93      entrypoint: ["/bin/bash","-c","set -euo pipefail; /mo-service -debug-http :12345 -cfg /config/log.toml | tee /log/logservice.log"]
    94      depends_on:
    95        - createbuckets
    96      ports:
    97        - "32000"
    98        - "32001"
    99        - "32002"
   100        - "42345:12345"
   101      environment:
   102        - AWS_ACCESS_KEY_ID=minio
   103        - AWS_SECRET_ACCESS_KEY=minio123
   104        - mo_reuse_enable_checker=true
   105      networks:
   106        monet:
   107          aliases:
   108            - "logservice"
   109  
   110    minio:
   111      image: minio/minio:RELEASE.2023-11-01T18-37-25Z
   112      ports:
   113        - "9000:9000"
   114        - "9001:9001"
   115      volumes:
   116        - minio_storage:/data
   117      environment:
   118        MINIO_ROOT_USER: minio
   119        MINIO_ROOT_PASSWORD: minio123
   120      command: server --console-address ":9001" /data
   121      profiles:
   122        - launch
   123        - launch-multi-cn
   124      healthcheck:
   125        test: timeout 5s bash -c ':> /dev/tcp/127.0.0.1/9001' || exit 1
   126        interval: 1s
   127        timeout: 5s
   128        retries: 10
   129      networks:
   130        monet:
   131  
   132    # Create default buckets via environment variables in docker
   133    # https://github.com/minio/minio/issues/4769
   134    # mc client: https://github.com/minio/mc/blob/master/docs/minio-client-complete-guide.md
   135    # mc anonymous set: https://min.io/docs/minio/linux/reference/minio-mc/mc-anonymous-set.html
   136    createbuckets:
   137      image: minio/mc:RELEASE.2023-10-30T18-43-32Z
   138      depends_on:
   139        minio:
   140          condition: service_healthy
   141      profiles:
   142        - launch
   143        - launch-multi-cn
   144      entrypoint: >
   145        /bin/sh -c "
   146        /usr/bin/mc alias set myminio http://minio:9000 minio minio123;
   147        /usr/bin/mc mb myminio/mo-test;
   148        /usr/bin/mc anonymous set public myminio/mo-test;
   149        exit 0;
   150        "
   151      networks:
   152        monet:
   153  
   154  
   155  volumes:
   156    minio_storage: {}
   157  
   158  # If there has subnet conflict, please change the subnet CIDR
   159  networks:
   160    monet:
   161      driver: bridge