docker-compose.yml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. version: '2'
  2. services:
  3. gocd-server:
  4. build:
  5. context: gocd-server/.
  6. args:
  7. GO_SERVER_VERSION: 16.3.0
  8. GO_SERVER_BUILD: 3183
  9. container_name: gocd-server
  10. ports:
  11. - "8153:8153"
  12. volumes:
  13. - ./mnt/var/lib/go-server:/var/lib/go-server
  14. - ./mnt/etc/go:/etc/go
  15. - ./mnt/var/log/go-server:/var/log/go-server
  16. links:
  17. - nexus
  18. environment:
  19. - AGENT_KEY=gocdkey
  20. gocd-agent:
  21. build: gocd-agent/.
  22. container_name: gocd-agent
  23. links:
  24. - gocd-server
  25. environment:
  26. - AGENT_KEY=gocdkey
  27. - AGENT_RESOURCES=java,node,cf
  28. - GO_SERVER=gocd-server
  29. - GO_SERVER_PORT=8153
  30. gocd-agent-jdk8:
  31. build:
  32. context: gocd-agent-jdk8/.
  33. args:
  34. GO_AGENT_VERSION: 16.3.0
  35. GO_AGENT_BUILD: 3183
  36. container_name: gocd-agent-jdk8
  37. links:
  38. - gocd-server
  39. environment:
  40. - AGENT_KEY=gocdkey
  41. - AGENT_RESOURCES=java
  42. - GO_SERVER=gocd-server
  43. - GO_SERVER_PORT=8153
  44. gocd-agent-nodejs:
  45. build:
  46. context: gocd-agent-nodejs/.
  47. args:
  48. GO_AGENT_VERSION: 16.3.0
  49. GO_AGENT_BUILD: 3183
  50. container_name: gocd-agent-nodejs
  51. links:
  52. - gocd-server
  53. volumes:
  54. - ./mnt/var/log:/var/log
  55. environment:
  56. - AGENT_KEY=gocdkey
  57. - AGENT_RESOURCES=node
  58. - GO_SERVER=gocd-server
  59. - GO_SERVER_PORT=8153
  60. gocd-agent-cloudfoundry:
  61. build:
  62. context: gocd-agent-cloudfoundry/.
  63. args:
  64. GO_AGENT_VERSION: 16.3.0
  65. GO_AGENT_BUILD: 3183
  66. container_name: gocd-agent-cf
  67. links:
  68. - gocd-server
  69. environment:
  70. - AGENT_KEY=gocdkey
  71. - AGENT_RESOURCES=cf
  72. - GO_SERVER=gocd-server
  73. - GO_SERVER_PORT=8153
  74. gocd-agent-docker:
  75. build:
  76. context: gocd-agent-docker/.
  77. args:
  78. GO_AGENT_VERSION: 16.3.0
  79. GO_AGENT_BUILD: 3183
  80. container_name: gocd-agent-docker
  81. links:
  82. - gocd-server
  83. environment:
  84. - AGENT_KEY=gocdkey
  85. - AGENT_RESOURCES=docker
  86. - GO_SERVER=gocd-server
  87. - GO_SERVER_PORT=8153
  88. nexus:
  89. image: sonatype/nexus
  90. container_name: nexus
  91. ports:
  92. - "8081:8081"
  93. postfix:
  94. image: juanluisbaptiste/postfix:latest
  95. ports:
  96. - "25:25"
  97. environment:
  98. SMTP_SERVER: smtp.mycompany.com
  99. SMTP_USERNAME: user@mycompany.com
  100. SMTP_PASSWORD: changeme
  101. SERVER_HOSTNAME: helpdesk.mycompany.com