How to Install Drone on Windows 11

Drone is a popular, open-source continuous integration and delivery platform that enables developers to automate build, test, and deployment workflows. Here is a step-by-step tutorial on how to install Drone on Windows 11:

Prerequisites

Before installing Drone, make sure you have the following:

Steps

  1. Clone the Drone server repository:
git clone https://github.com/drone/drone-docker.git
  1. Navigate to the cloned repository:
cd drone-docker
  1. Open the docker-compose.yml file:
nano docker-compose.yml
  1. Add the following lines at the bottom of the file:
services:
  drone-server:
    image: drone/drone:latest
    ports:
      - 80:80
      - 443:443
      - 9000:9000
    volumes:
      - ./drone:/data
      - /var/run/docker.sock:/var/run/docker.sock
      - /usr/local/bin/docker:/usr/bin/docker
      - /var/lib/docker:/var/lib/docker
    restart: always
    environment:
      - DRONE_SERVER_HOST=your.server.domain
      - DRONE_SERVER_PROTO=http
      - DRONE_TLS_AUTOCERT=true
      - DRONE_TLS_AUTOCERT_HOSTS=your.server.domain
      - DRONE_GIT_ALWAYS_AUTH=false
      - DRONE_GITEA_SERVER=https://your.gitea.server.com
      - DRONE_GITEA_CLIENT_ID=<your client ID>
      - DRONE_GITEA_CLIENT_SECRET=<your client secret>
      - DRONE_SECRET=<your secret>
    depends_on:
      - drone-agent

  drone-agent:
    image: drone/drone-runner-docker:latest
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - /usr/local/bin/docker:/usr/bin/docker
    restart: always
    depends_on:
      - docker

Make sure to replace the values of the environment variables with your own settings.

  1. Save and close the file.

  2. Create the drone directory:

mkdir drone
  1. Adjust the ownership of the drone directory:
chown -R 1000:1000 drone
  1. Start the Docker Compose file:
docker-compose up -d
  1. Access the Drone server by opening a web browser and going to:
http://your.server.domain

Where your.server.domain is the domain name where Drone is installed.

  1. Login to the Drone server with an administrator user account.

  2. Create a new repository and activate the drone.yml file.

Congratulations, you have successfully installed Drone on Windows 11!

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!