.platform.app.yaml 789 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. name: vault
  2. type: golang:1.10
  3. hooks:
  4. build: |
  5. go get -u github.com/hashicorp/vault
  6. dependencies:
  7. python:
  8. redis: '*'
  9. web:
  10. upstream:
  11. socket_family: tcp
  12. protocol: http
  13. commands:
  14. start: |
  15. # We start Vault
  16. HOME=/app/data ./go/bin/vault server -dev -dev-listen-address 0.0.0.0:8888 &
  17. # then wait for it to bootstrap
  18. sleep 5
  19. # and finally set root token in redis for frontend to use.
  20. ./update-credentials.py
  21. # Now just wait.
  22. sleep infinity
  23. locations:
  24. /:
  25. allow: false
  26. passthru: true
  27. disk: 256
  28. mounts:
  29. 'data':
  30. source: local
  31. source_path: 'data'
  32. relationships:
  33. redis: 'redis:redis'