A Test Repository for testing Drone CI implementation
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

72 lines
1.6 KiB

  1. version: "2"
  2. volumes:
  3. gitea-data:
  4. db:
  5. drone-db:
  6. networks:
  7. default:
  8. external:
  9. name: ${DEFAULT_NETWORK}
  10. services:
  11. gitea-server:
  12. image: gitea/gitea:latest
  13. ports:
  14. - 8380:3000
  15. volumes:
  16. - gitea-data:/data
  17. - ./data:/data/gitea
  18. restart: always
  19. external_links:
  20. - gitea-db
  21. depends_on:
  22. - gitea-db
  23. gitea-db:
  24. image: postgres:alpine
  25. ports:
  26. - 5440:5432
  27. restart: always
  28. volumes:
  29. - db:/var/lib/postgresql/data
  30. environment:
  31. - POSTGRES_PASSWORD=gitea
  32. - POSTGRES_DB=gitea
  33. drone-server:
  34. image: drone/drone:latest
  35. ports:
  36. - 80:80
  37. - 443:443
  38. volumes:
  39. - drone-db:/var/lib/drone/
  40. restart: always
  41. environment:
  42. - DRONE_GITEA_SERVER=https://gitea.udux.com
  43. - DRONE_GITEA_CLIENT_ID=e8c6d970-e7cd-4a26-ae09-0e1fb6245108
  44. - DRONE_GITEA_CLIENT_SECRET=jGCvsSjwRi6_yUmUC9a0j1k5wwP1O5oqtBerVbJteO0=
  45. - DRONE_RPC_SECRET=254b98543ee99909e8d9384d58be5ff8
  46. - DRONE_SERVER_HOST=localhost:80
  47. - DRONE_SERVER_PROTO=http
  48. depends_on:
  49. - gitea-server
  50. drone-agent:
  51. image: drone/drone:1
  52. command: agent
  53. restart: always
  54. depends_on:
  55. - drone-server
  56. volumes:
  57. - /var/run/docker.sock:/var/run/docker.sock
  58. environment:
  59. - DRONE_SERVER=drone-server:9000
  60. - DRONE_SECRET=test
  61. - DRONE_GITEA_SERVER=https://gitea.udux.com
  62. - DRONE_GITEA_CLIENT_ID=e8c6d970-e7cd-4a26-ae09-0e1fb6245108
  63. - DRONE_GITEA_CLIENT_SECRET=jGCvsSjwRi6_yUmUC9a0j1k5wwP1O5oqtBerVbJteO0=
  64. - DRONE_SERVER_HOST=localhost:80