This section provides basic instructions for installing Drone using docker-compose. The below configuration can be used to start the Drone server with multi-agent.
copy .env.example .env
Modify .env conform your database setting
- Sqlite
- Delete
DRONE_DATABASE_DRIVER
andDRONE_DATABASE_DATASOURCE
at docker-compose.yaml
- Delete
- MariaDB
- Set
DB_DRIVER=mysql
- Set
DB_HOST=mariadb
- Set
DB_DATABASE,DB_USERNAME,DB_PASSWORD,DB_ROOT_PASSWORD
- Copy MariaDB Connection command(at .env file) insert docker-compose.yaml
DRONE_DATABASE_DATASOURCE
field
- Set
- PostgreSQL
- Set
DB_DRIVER=postgres
- Set
DB_HOST=postgres
- Set
DB_DATABASE,DB_USERNAME,DB_PASSWORD
- Copy PostgreSQL Connection command(at .env file) insert docker-compose.yaml
DRONE_DATABASE_DATASOURCE
field
- Set
Start the containers in the background and leaves them running.
docker-compose up -d
Stops running containers without removing them
docker-compose stop
Stops containers and removes containers, networks, volumes, and images created by up
docker-compose down
Displays log output from services.
docker-compose logs -f
First Install cli tool
$ export DRONE_SERVER=http://localhost/
$ export DRONE_TOKEN={YOUR_TOKEN}
$ drone info
User: cutedogspark
Email: cutedogspark@gmail.com
Contributions are most welcome!