Advertisement
Guest User

docker-compose.yml

a guest
Mar 17th, 2016
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.66 KB | None | 0 0
  1. version: '2'
  2. services:
  3. nexus:
  4. build: ./nexus
  5. ports:
  6. - "18081:8081"
  7.  
  8. jenkins:
  9. build: ./jenkins
  10. ports:
  11. - "18080:8080"
  12. links:
  13. - nexus:nexus
  14. - gitlab:gitlab
  15. - sonar:sonar
  16. - selhub:hub
  17. volumes:
  18. - /var/run/docker.sock:/var/run/docker.sock
  19. - /usr/local/bin/docker:/usr/bin/docker
  20. depends_on:
  21. - nexus
  22. - gitlab
  23. - sonar
  24. - selhub
  25. environment:
  26. - NEXUS_PORT=8081
  27. - SONAR_PORT=9000
  28. - SONAR_DB_PORT=5432
  29.  
  30. sonar:
  31. build: ./sonar
  32. ports:
  33. - "19000:9000"
  34. - "5432:5432"
  35. environment:
  36. - SONARQUBE_JDBC_URL=jdbc:postgresql://localhost:5432/sonar
  37. db:
  38. network_mode: service:sonar
  39. image: postgres
  40. environment:
  41. - POSTGRES_USER=sonar
  42. - POSTGRES_PASSWORD=sonar
  43.  
  44. selhub:
  45. image: selenium/hub
  46. ports:
  47. - 4444:4444
  48.  
  49. nodeff:
  50. image: selenium/node-firefox-debug
  51. ports:
  52. - 5900
  53. links:
  54. - selhub:hub
  55. environment:
  56. - HUB_PORT_4444_TCP_ADDR=hub
  57. depends_on:
  58. - selhub
  59.  
  60. nodechrome:
  61. image: selenium/node-chrome-debug
  62. ports:
  63. - 5900
  64. links:
  65. - selhub:hub
  66. environment:
  67. - HUB_PORT_4444_TCP_ADDR=hub
  68. depends_on:
  69. - selhub
  70.  
  71. db2:
  72. image: postgres
  73. environment:
  74. - POSTGRES_USER=gitlab
  75. - POSTGRES_PASSWORD=gitlab
  76. - POSTGRES_DB=gitlab
  77. gitlab:
  78. image: sameersbn/gitlab:8.3.2
  79. links:
  80. - redis:redisio
  81. - db2:db2
  82. ports:
  83. - "10080:80"
  84. - "10022:22"
  85. depends_on:
  86. - db2
  87. - redis
  88. environment:
  89. - DB_HOST=db2
  90. - DB_NAME=gitlab
  91. - DB_USER=gitlab
  92. - DB_PASS=gitlab
  93. - REDIS_HOST=redisio
  94.  
  95. - TZ=Europe/Madrid
  96. - GITLAB_TIMEZONE=Madrid
  97.  
  98. - GITLAB_SECRETS_DB_KEY_BASE=long-and-random-alphanumeric-string
  99.  
  100. - GITLAB_HOST=localhost
  101. - GITLAB_PORT=10080
  102. - GITLAB_SSH_PORT=10022
  103.  
  104. - GITLAB_NOTIFY_ON_BROKEN_BUILDS=true
  105. - GITLAB_NOTIFY_PUSHER=false
  106.  
  107. - GITLAB_EMAIL=notifications@example.com
  108. - GITLAB_EMAIL_REPLY_TO=noreply@example.com
  109. - GITLAB_INCOMING_EMAIL_ADDRESS=reply@example.com
  110.  
  111. - GITLAB_BACKUPS=daily
  112. - GITLAB_BACKUP_TIME=01:00
  113.  
  114. - SMTP_ENABLED=false
  115. - SMTP_DOMAIN=www.example.com
  116. - SMTP_HOST=smtp.gmail.com
  117. - SMTP_PORT=587
  118. - SMTP_USER=mailer@example.com
  119. - SMTP_PASS=password
  120. - SMTP_STARTTLS=true
  121. - SMTP_AUTHENTICATION=login
  122.  
  123. - IMAP_ENABLED=false
  124. - IMAP_HOST=imap.gmail.com
  125. - IMAP_PORT=993
  126. - IMAP_USER=mailer@example.com
  127. - IMAP_PASS=password
  128. - IMAP_SSL=true
  129. - IMAP_STARTTLS=false
  130. volumes:
  131. - /srv/docker/gitlab/gitlab:/home/git/data
  132. redis:
  133. image: sameersbn/redis:latest
  134. volumes:
  135. - /srv/docker/gitlab/redis:/var/lib/redis
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement