Giter VIP home page Giter VIP logo

docker_vault's Introduction

Docker + Consul + Vault

How to use docker-compose to spin up a Vault instance backed by Consul.

I just updated this repository, which is based of ideas from: www.marcolancini.it/2017/blog-vault/

TODO: Fix Backup - it doesn't work for now

Note: In order to execute scripts/vault_get_secret.py you first need to source env.sh - assuming that you already imported the cert.

Usage

Create certs (optional)

  1. Create certs: SAN=IP.1:127.0.0.1 scripts/gen-crt.sh
  2. Install and import certs to both container and host: scripts/install-certs.sh
  3. Uncomment the part in vault.hcl about certificates and comment tls_disable
  4. Restart the container if not already restarted

First Run

  1. Start services: docker-compose up
  2. Init vault: ./scripts/setup.sh
  3. When done: docker-compose down

Data will be persisted in the _data folder.

Subsequent Runs

  1. Start services: docker-compose up
  2. Unseal vault: scripts/unseal.sh

Backup

  1. Start services: docker-compose up
  2. Run backup: scripts/backup.sh

Remove all data

  1. Stop services: docker-compose down --volumes
  2. Clear persisted data: scripts/clean.sh

docker_vault's People

Contributors

kiwimato avatar

Watchers

Mihai Cindea avatar

Forkers

dagnirko

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.