Drone CI Installation (Gitea)

version: "3.3"

services:
  drone:
    image: drone/drone
    restart: always
    environment:
      DRONE_GITEA_CLIENT_ID: "gitea_oauth_client_id"
      DRONE_GITEA_CLIENT_SECRET: "gitea_oauth_client_secret"
      DRONE_GITEA_SERVER: "https://gitea.example.com"
      DRONE_RPC_SECRET: "drone_rpc_secret"
      DRONE_SERVER_HOST: "drone.example.com"
      DRONE_SERVER_PROTO: "https"
      DRONE_USER_CREATE: "username:russia9,admin:true"
    ports:
      - "127.0.0.1:3001:80"
    volumes:
      - "./data:/data"

  drone-runner:
    image: drone/drone-runner-docker
    restart: always
    environment:
      DRONE_RUNNER_NAME: "runner-01"
      DRONE_RUNNER_CAPACITY: "10"
      DRONE_RPC_SECRET: "drone_rpc_secret"
      DRONE_RPC_HOST: "drone.example.com"
      DRONE_RPC_PROTO: "https"
    volumes:
      - "/var/run/docker.sock:/var/run/docker.sock"

*Replace drone_*, gitea_* and *.example.com with your values