Skip to content

Drone - CI/CD tool

YAML
version: "3.7"
services:

  drone:
    image: drone/drone:2
    container_name: drone-server
    volumes:
      - ./drone-data:/data
    environment:
      - DRONE_GITEA_SERVER=https://git.domain.dev
      - DRONE_GITEA_CLIENT_ID=e23e3eda-d1b1-4db4-afb6-6660e3af5a64
      - DRONE_GITEA_CLIENT_SECRET=gto_mwprzwf76twXXXXXXXXXXXXXdqmbek2zjt6a
      - DRONE_RPC_SECRET=a609bXXXXXXXXXXXXXXX207a86c3e0
      - DRONE_SERVER_HOST=drone.domain.dev
      - DRONE_SERVER_PROTO=https
#      - DRONE_GIT_ALWAYS_AUTH=true
      - DRONE_USER_CREATE=username:admin_user,admin:true
    ports:
      - 127.0.0.1:8020:80
    restart: always
    networks:
      - durbok-net
    hostname: drone-server

  drone-runner-1:
    image: drone/drone-runner-docker:1
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - ./kube:/.kube
    container_name: drone-runner-1
    hostname: drone-runner-1
    networks:
      - durbok-net
    environment:
      - DRONE_RPC_PROTO=https
      - DRONE_RPC_HOST=drone.kafana.dev
      - DRONE_RPC_SECRET=a609b3aa22e0b341d059eb207a86c3e0
      - DRONE_RUNNER_CAPACITY=2
      - DRONE_RUNNER_NAME=crazy_runner
    restart: always


networks:
  durbok-net:
    name: durbok-net
    external: true