返回应用列表
Drone.io

Deploy Drone.io on Your Own Server

Drone is a self-service Continuous Delivery platform for busy development teams

🛠️ Developer Tools

想更快部署 Drone.io到服务器?试试 Senate,一条命令完成部署,自动配置 HTTPS 和监控。

立即开始

什么是 Drone.io?

Drone is a self-service Continuous Delivery platform for busy development teams. It can be used with different GIT servers like gogs, gitea as well as services like gitlab and github. This installer is gitea focused and requires a running gitea instances (which you can install via one-click-apps in Senate). You must generate an OAuth2 application in Gitea (Settings->Applications->Create a new OAuth2 Application) with the "Redirect URI" https://<your drone server>/login. Make a note of the Client ID and the Client Secret and use them in the appropriate fields below. Enter your Drone for Gitea configuration parameters and click on next. The process will take about a minute to finish. Please make sure that after deployment you add HTTPS to your ${app_name} application or communication with the runner will fail.

自托管 Drone.io

按照以下步骤在您的服务器上部署。

1

安装 Docker

如果服务器上已安装 Docker,可跳过此步骤。

curl -fsSL https://get.docker.com | sh
2

配置

自定义以下设置。大多数情况下使用默认值即可。

General
3

部署

复制配置并在服务器上运行。

services:
  drone_gitea:
    image: drone/drone:1.9.0
    environment:
      DRONE_GITEA_CLIENT_ID: ""
      DRONE_GITEA_CLIENT_SECRET: ""
      DRONE_GITEA_SERVER: https://git.your.server
      DRONE_GIT_ALWAYS_AUTH: "false"
      DRONE_RPC_SECRET: ""
      DRONE_RUNNER_CAPACITY: "4"
      DRONE_SERVER_HOST: drone.yourhost.com
      DRONE_SERVER_PROTO: https
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - drone_gitea-server:/data
    depends_on:
      - drone_gitea-agent
  drone_gitea-agent:
    image: drone/drone-runner-docker:1.5.1
    environment:
      DRONE_RPC_HOST: drone_gitea:80
      DRONE_RPC_PROTO: http
      DRONE_RPC_SECRET: ""
      DRONE_RUNNER_CAPACITY: "4"
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
volumes:
  drone_gitea-server: {}

然后运行:

docker compose up -d
4

访问

启动后,访问您的应用: http://localhost:80

为什么要自托管 Drone.io?

完全数据所有权

数据保存在您的服务器上,无第三方访问。

无月费

只需支付服务器费用,无按席位或用量收费。

完全控制

按您的需求自定义、备份和扩展。

隐私与合规

满足 GDPR、HIPAA 或内部安全要求。

技术细节

Docker 镜像

drone/drone:${drone_version}

想更快部署?

尝试 Senate!Senate 帮您处理 Docker、HTTPS、更新和监控。一条命令部署 300+ 应用。

在任意 Linux 服务器上安装:

sh -c "$(curl -sSL https://get.senate.sh)"