Skip to content

Instantly share code, notes, and snippets.

@lorentzca
Created February 9, 2016 16:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lorentzca/392ad739940dd89b5e96 to your computer and use it in GitHub Desktop.
Save lorentzca/392ad739940dd89b5e96 to your computer and use it in GitHub Desktop.
run vault server
backend "file" {
path = "/dev/vault"
}
listener "tcp" {
address = "0.0.0.0:8200"
tls_disable = 1
}
disable_mlock = true
vault:
build: .
command: 'bash -c ''/usr/local/bin/vault server -config=/root/config.hcl'''
ports:
- '8200:8200'
FROM lorentzca/vault_on_centos7
COPY ./config.hcl /root/config.hcl
@lorentzca
Copy link
Author

docker-compose build
docker-compose up
$ curl http://192.168.99.100:8200/v1/sys/init
{"initialized":false}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment