12345678910111213141516171819202122232425262728293031323334353637383940 |
- name: vault
- type: golang:1.10
- hooks:
- build: |
- go get -u github.com/hashicorp/vault
- dependencies:
- python:
- redis: '*'
- web:
- upstream:
- socket_family: tcp
- protocol: http
- commands:
- start: |
- # We start Vault
- HOME=/app/data ./go/bin/vault server -dev -dev-listen-address 0.0.0.0:8888 &
- # then wait for it to bootstrap
- sleep 5
- # and finally set root token in redis for frontend to use.
- ./update-credentials.py
- # Now just wait.
- sleep infinity
- locations:
- /:
- allow: false
- passthru: true
- disk: 256
- mounts:
- 'data':
- source: local
- source_path: 'data'
- relationships:
- redis: 'redis:redis'
|