Advertisement
Guest User

Untitled

a guest
May 2nd, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.03 KB | None | 0 0
  1. version: "3.2"
  2.  
  3. services:
  4. puppet:
  5. image: puppet/puppetserver:2.7.2
  6. hostname: puppet
  7. networks:
  8. - internal
  9. ports:
  10. - target: 8140
  11. published: 8140
  12. protocol: tcp
  13. mode: ingress
  14. environment:
  15. - "MODE=swarm"
  16. volumes:
  17. - /docker/puppetlabs/puppet/code:/etc/puppetlabs/code:ro
  18. - /docker/puppetlabs/puppet/ssl:/etc/puppetlabs/puppet/ssl
  19. deploy:
  20. replicas: 2
  21. restart_policy:
  22. condition: on-failure
  23.  
  24. postgres:
  25. image: puppet/puppetdb-postgres:latest
  26. networks:
  27. internal:
  28. aliases:
  29. - postgres
  30. environment:
  31. - "POSTGRES_PASSWORD=puppetdb"
  32. - "POSTGRES_USER=puppetdb"
  33. volumes:
  34. - /docker/puppetlabs/postgres/data:/var/lib/postgresql/data/
  35. deploy:
  36. restart_policy:
  37. condition: on-failure
  38.  
  39. puppetdb:
  40. image: puppet/puppetdb:4.3.0
  41. hostname: puppetdb
  42. networks:
  43. - internal
  44. depends_on:
  45. - puppet
  46. - postgres
  47. volumes:
  48. - /docker/puppetlabs/puppetdb/ssl:/etc/puppetlabs/puppet/ssl
  49. deploy:
  50. replicas: 1
  51. restart_policy:
  52. condition: on-failure
  53.  
  54. puppetboard:
  55. image: terzom/puppetboard:latest
  56. networks:
  57. - internal
  58. - proxy
  59. environment:
  60. - "PUPPETDB_HOST=puppetdb"
  61. - "PUPPETDB_PORT=8080"
  62. - "PUPPETDB_SSL_VERIFY=False"
  63. - "ENABLE_CATALOG=True"
  64. - "GRAPH_FACTS='architecture,puppetversion,osfamily,rubyversion,operatingsystem,kernelmajversion'"
  65. depends_on:
  66. - puppetdb
  67. deploy:
  68. labels:
  69. com.df.notify: 'true'
  70. com.df.distribute: 'true'
  71. com.df.servicePath: /
  72. com.df.reqPathReplace: /
  73. com.df.reqPathSearch: /
  74. com.df.port: 80
  75. com.df.serviceDomain: puppetboard,puppetboard.internal.terzo.org
  76. com.df.serviceDomainMatchAll: 'false'
  77. replicas: 2
  78. restart_policy:
  79. condition: on-failure
  80.  
  81. networks:
  82. internal:
  83. driver: overlay
  84. ipam:
  85. driver: default
  86. config:
  87. - subnet: 10.1.100.0/24
  88. proxy:
  89. external: true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement