https://github.com/marknjunge/vault-docker
Run Vault in a Docker container.
https://github.com/marknjunge/vault-docker
docker vault
Last synced: 3 months ago
JSON representation
Run Vault in a Docker container.
- Host: GitHub
- URL: https://github.com/marknjunge/vault-docker
- Owner: MarkNjunge
- Created: 2020-03-07T11:11:58.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-07T11:13:13.000Z (over 6 years ago)
- Last Synced: 2025-04-09T13:19:41.322Z (over 1 year ago)
- Topics: docker, vault
- Language: Shell
- Size: 4.88 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
Awesome Lists containing this project
README
# Vault + Docker
Run [Vault](https://www.vaultproject.io/) in a Docker container.
Requires Vault CLI.
## Installation
1. Clone the repository.
2. Modify [`config.hcl`](config.hcl).
3. Add policies to `./policies/`
4. Add secrets in json format to `./secrets/`
## Usage
### 1. Start the Vault container
```
docker build -t marknjunge/vault .
docker run --name vault -p 8200:8200 --cap-add IPC_LOCK marknjunge/vault
```
OR
```
docker-compose up -d
```
### 2. Unseal Vault
Use the [Vault ui](http://localhost:8200/ui/) to generate keys and unseal or use the following command.
```
./1-unseal.sh
```
### 3. Run setup
This script enables userpass, create an admin user, creates your policies and creates your secrets.
```
./2-setup.sh
```
### 4. Login
Login to [Vault ui](http://localhost:8200/ui/) using:
```
username: admin
password: admin
```