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:
Before installing Drone, make sure you have the following:
git clone https://github.com/drone/drone-docker.git
cd drone-docker
docker-compose.yml
file:nano docker-compose.yml
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.
Save and close the file.
Create the drone
directory:
mkdir drone
drone
directory:chown -R 1000:1000 drone
docker-compose up -d
http://your.server.domain
Where your.server.domain
is the domain name where Drone is installed.
Login to the Drone server with an administrator user account.
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!