docker-compose.yml 797 字节
Newer Older
1 2 3 4 5 6
version: "3.3"
services:
  miniob-dev:
    build:
      context: .
      dockerfile: Dockerfile
羽飞's avatar
羽飞 已提交
7
    image: miniob:v1.1
8 9 10 11 12 13 14 15 16 17 18 19 20 21
    container_name: miniob
    privileged: true
    ports:
      - "10000:22"
    restart: unless-stopped
    environment:
      #  set the env argument PRIVATE_KEY when using ssh clone
      #  REPO_ADDR format in a private repo: https://<username>:<password>@github.com/oceanbase/miniob.git, '@' in username must be escape to '%40'
      #  How to run:
      #    Linux shell: 
      #        export PRIVATE_KEY=$(cat ~/.ssh/id_rsa) && docker-compose up -d --build
      #    Windows powershell: 
      #        $env:PRIVATE_KEY=$(cat ~/.ssh/id_rsa) && docker-compose up -d --build
      - REPO_ADDR=https://github.com/oceanbase/miniob.git
羽飞's avatar
羽飞 已提交
22
      - PRIVATE_KEY=${PRIVATE_KEY}