Guest User

Untitled

a guest
Dec 22nd, 2017
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. version: "3.2"
  2.  
  3. services:
  4. puppetdb:
  5. deploy:
  6. replicas: 2
  7. hostname: mdct-puppetdb
  8. image: docker-registry.example.com/puppetdb:latest
  9. ports:
  10. - 8080:8080
  11. - 8081:8081
  12. networks:
  13. - puppetdb_net
  14. environment:
  15. PUPPETDB_DATABASE_CONNECTION: '//postgresql:5432/puppetdb'
  16. PUPPETDB_USER: puppetdb
  17. PUPPETDB_PASSWORD: puppetdb
  18. PUPPETDB_JAVA_ARGS: '-Djava.net.preferIPv4Stack=true -Xms256m -Xmx256m'
  19. PATH: '/opt/puppetlabs/server/bin:/opt/puppetlabs/puppet/bin:/opt/puppetlabs/bin:$PATH'
  20. volumes:
  21. - /var/mnt/gluster/docker_data/puppetdb/ssl:/etc/puppetlabs/puppet/ssl:ro
  22.  
  23. postgresql:
  24. deploy:
  25. replicas: 1
  26. image: postgres:9.4
  27. ports:
  28. - 5432:5432
  29. networks:
  30. - puppetdb_net
  31. volumes:
  32. - /var/mnt/gluster/docker_data/puppetdb/postgres:/var/lib/postgresql/data:rw
  33.  
  34. networks:
  35. puppetdb_net:
  36. driver: overlay
  37. attachable: true
Add Comment
Please, Sign In to add comment