docker-compose-server.yml:

version: '2'
services:
  drone-server:
    container_name: drone
    image: drone/drone
    ports:
      - 8920:80
    volumes:
      - /var/lib/drone:/data
      - /var/run/docker.sock:/var/run/docker.sock
      - /BUILD:/BUILD
    restart: always
    environment:
      - DRONE_SERVER_HOST=drone.tldp.org
      - DRONE_SERVER_PROTO=https
      - DRONE_TLS_AUTOCERT=false
      - DRONE_GIT_ALWAYS_AUTH=false
      - DRONE_GITEA_SERVER=https://git.tldp.org/
      - DRONE_LOGS_PRETTY=true
      - DRONE_LOGS_TEXT=true
      - DRONE_LOGS_COLOR=true
      - DRONE_USER_CREATE=username:ser,admin:true
      - DRONE_RUNNER_CAPACITY=1
      - DRONE_RUNNER_VOLUMES=/BUILD:/BUILD
      #- DRONE_LOGS_DEBUG=true
      #extra_hosts: # better set in in knot-resolver
        #- "git.tldp.org:172.30.0.7"

secret keys:

drone secret add --repository LDP/LDP -name rsync_key --data @/home/ser/.ssh/ldp_drone
  • faq/drone.txt
  • Last modified: 6 months ago
  • by Dr Serge Victor