preface

Welcome to our GitHub repository Star: github.com/bin39232820… The best time to plant a tree was ten years ago, followed by now

omg

It happened that the company was going to build some basic services, so I wanted to record the process of building while building. In order to make it simpler in the future, I made a record

Zen master

Zen Tao is a project management tool that many companies use to manage projects anyway. Specific how to use everybody to explore, I first deploy again

For zen tao, I will use Docker to deploy it

mkdir -p /data/zbox && \ docker run -d -p 80:80 -p 3306:3306 \ -e ADMINER_USER="root" -e ADMINER_PASSWD="password" \ -e BIND_ADDRESS = "false" \ - v/data/zbox / : / opt/zbox / \ - add - host smtp.exmail.qq.com: 163.177.90.125 \ - name zentao - server \  idoop/zentao:latestCopy the code

Very simple is to pay attention to the zen tao data volume to hang out, let’s visit 80 to see the effect

Yapi

YApi is a local deployment, through front end and QA, visual interface management platform hellosean1025. Making the IO/YApi YApi still pretty good, used in the interface before and after the alignment, the interface of the document management, etc

Docker-compose is also used to build my docker-compose, and YAPI uses Mongo as its database

  • Create a directory for yapi
mkdir yapi
Copy the code
  • Write the docker – compose

cd yapi/

vim docker-compose.yml


version: "3"
services:
  mongo:
    image: mongo:3
    container_name: mongo
    networks:
      - yapi
    environment:
      - MONGO_INITDB_ROOT_USERNAME=yapi
      - MONGO_INITDB_ROOT_PASSWORD=yapi
      - MONGO_INITDB_DATABASE=yapi
    ports:
      - "27016:27017"
    volumes:
      - ./mongo-data:/data/db
  yapi:
    image: wyntau/ymfe-yapi
    container_name: yapi
    depends_on:
      - mongo
    ports:
      - "3000:3000"
    networks:
      - yapi
    volumes:
      - ./config.json:/app/config.json
      - ./yapi-runtime:/app/runtime
networks:
  yapi:
Copy the code

vi config.json

{
  "port": "3000",
  "adminAccount": "[email protected]",
  "db": {
    "servername": "mongo",
    "DATABASE": "yapi",
    "port": 27017,
    "user": "yapi",
    "pass": "yapi",
    "authSource": "admin"
  }
}

Copy the code
  • Then start

docker-compose up -d

Docker ps check the running status

Visit 10.0.51.198:3000

Set up successfully, the specific usage, we still look at the document, TODAY I just record the set up process, thank you

Gitlab

Install GitLab based on Docker

We use Docker to install and run the Chinese version of GitLab. Due to many problems in the new version, we use the current relatively stable version 10.5 here, and docker-comemage. yml configuration is as follows:

Version: '3' services: gitlab: image: 'twang2218/gitlab-ce-zh' restart: always hostname: '10.0.51.198' environment: TZ: 'Asia/Shanghai' GITLAB_OMNIBUS_CONFIG: | external_url 'http://10.0.51.198:9001' gitlab_rails the [' gitlab_shell_ssh_port] = 2222 unicorn [' port '] = 8888 nginx['listen_port'] = 9001 ports: - '9001:9001' - '8443:443' - '2222:22' volumes: - ./config:/etc/gitlab - ./data:/var/opt/gitlab - ./logs:/var/log/gitlabCopy the code

Then go to http://10.0.51.198:9001