drone+gogs 自动化编译部署

docker-compose.yml

启动:docker-compose up -d

version: '2'

services:
  drone-server:
    image: drone/drone:0.8

    ports:
      - 8000:8000
      - 9000
    restart: always
    container_name: drone-server
    volumes:
      - /tmp/drone:/var/lib/drone/
    environment:
      - DRONE_OPEN=false
      - DRONE_HOST=http://192.168.1.155
      - DRONE_GOGS=true
      - DRONE_GOGS_URL=https://git.cdeyun.com
      - DRONE_GOGS_SKIP_VERIFY=true
      - DRONE_GOGS_PRIVATE_MODE=true
      - DRONE_SECRET=123456
      - DRONE_ADMIN=hk

  drone-agent:
    image: drone/agent

    container_name: drone-agent:0.8
    ports:
      - 3030:3000
    restart: always
    depends_on:
      - drone-server
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    environment:
      - DRONE_SERVER=drone-server:9000
      - DRONE_SECRET=123456