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
2.4 KiB

  1. version: '2'
  2. services:
  3. Global-LB:
  4. image: rancher/lb-service-haproxy:v0.9.6
  5. ports:
  6. - 80:80/tcp
  7. labels:
  8. io.rancher.scheduler.affinity:host_label: com.wanhai.tml.lb_host=true
  9. io.rancher.container.agent.role: environmentAdmin,agent
  10. io.rancher.container.agent_service.drain_provider: 'true'
  11. io.rancher.container.create_agent: 'true'
  12. TeamCity-Agent-Alpha:
  13. privileged: true
  14. image: khhwtml02t.wanhai.com:8182/jetbrains/teamcity-agent:latest
  15. environment:
  16. SERVER_URL: http://khhwtml02t.wanhai.com:8111
  17. AGENT_NAME: Agent-Alpha1
  18. RANCHER_URL: http://khhwtml01t.wanhai.com:8888
  19. RANCHER_ACCESS_KEY: 5E7731B2CB115A1B007C
  20. RANCHER_SECRET_KEY: VR3DGmfivwHjMPxnhVL4QLv2VEYKcnUHDuTcoWgD
  21. stdin_open: true
  22. volumes:
  23. - /var/run/docker.sock:/var/run/docker.sock
  24. tty: true
  25. labels:
  26. io.rancher.container.pull_image: always
  27. TeamCity-Agent-Beta:
  28. privileged: true
  29. image: khhwtml02t.wanhai.com:8182/jetbrains/teamcity-agent:latest
  30. environment:
  31. SERVER_URL: http://khhwtml02t.wanhai.com:8111
  32. AGENT_NAME: Agent-Beta1
  33. RANCHER_URL: http://khhwtml01t.wanhai.com:8888
  34. RANCHER_ACCESS_KEY: 5E7731B2CB115A1B007C
  35. RANCHER_SECRET_KEY: VR3DGmfivwHjMPxnhVL4QLv2VEYKcnUHDuTcoWgD
  36. stdin_open: true
  37. volumes:
  38. - /var/run/docker.sock:/var/run/docker.sock
  39. tty: true
  40. labels:
  41. io.rancher.container.pull_image: always
  42. io.rancher.container.hostname_override: container_name
  43. TML-Docker-Registry:
  44. image: sonatype/nexus3:latest
  45. environment:
  46. TZ: Asia/Taipei
  47. stdin_open: true
  48. volumes:
  49. - /docker/nexus3/nexus-data:/nexus-data
  50. tty: true
  51. ports:
  52. - 8181:8081
  53. - 8182:8182
  54. labels:
  55. io.rancher.container.pull_image: always
  56. io.rancher.scheduler.affinity:host_label: com.wanhai.tml.main_host=true
  57. io.rancher.container.hostname_override: container_name
  58. TeamCity-Server:
  59. image: jetbrains/teamcity-server:latest
  60. environment:
  61. TZ: Asia/Taipei
  62. stdin_open: true
  63. volumes:
  64. - /docker/teamcity/data:/data/teamcity_server/datadir
  65. - /docker/teamcity/logs:/opt/teamcity/logs
  66. tty: true
  67. ports:
  68. - 8111:8111
  69. labels:
  70. io.rancher.container.pull_image: always
  71. io.rancher.scheduler.affinity:host_label: com.wanhai.tml.main_host=true
  72. io.rancher.container.hostname_override: container_name