docker-compose.yaml 787 B

1234567891011121314151617181920212223242526272829303132
  1. version: '2'
  2. services:
  3. drone-server:
  4. image: drone/drone:0.7
  5. ports:
  6. - 8000:8000
  7. volumes:
  8. - /tmp/drone:/var/lib/drone/
  9. restart: always
  10. environment:
  11. - DRONE_OPEN=true
  12. - DRONE_ADMIN=yqguo
  13. - DRONE_HOST=127.0.0.1
  14. - DRONE_SECRET=yqguo
  15. - DRONE_GOGS=true
  16. - DRONE_GOGS_URL=https://git.yoqi.me
  17. # - DRONE_GOGS_GIT_USERNAME=yqguo
  18. # - DRONE_GOGS_GIT_PASSWORD=123456
  19. - DRONE_GOGS_PRIVATE_MODE=true
  20. - DRONE_GOGS_SKIP_VERIFY=false
  21. drone-agent:
  22. image: drone/drone:0.7
  23. command: agent
  24. restart: always
  25. depends_on:
  26. - drone-server
  27. volumes:
  28. - /var/run/docker.sock:/var/run/docker.sock
  29. environment:
  30. - DRONE_SERVER=ws://drone-server:8000/ws/broker
  31. - DRONE_SECRET=yqguo