Just a basic Hashicorp Vault, with local storage.
1.2K
Prequisites:
192.168.1.102 from now on.192.168.1.102Setup Vault:
connect to docker machine and create your work directory
ssh 192.168.1.102
# Preparing structure
mkdir -p qts && cd qts
git clone https://gitlab.com/qts.cloud/showcase/docker/vault.git
Check Vault configuration file:
# qts/vault/config.json
{
"backend": {
"file": {
"path": "/vault/storage"
}
},
"listener": {
"tcp":{
"address": "0.0.0.0:8200",
"tls_disable": 1
}
},
"ui": true
}
Check Vault docker-compose.yml:
# qts/vault/docker-compose.json
version: "3"
services:
vault:
image: ibacalu/vault:latest
ports:
- 8200:8200
volumes:
- ./storage:/vault/storage
- ./config.json:/vault/config.json
environment:
- VAULT_API_ADDR=http://127.0.0.1:8200
command: server -config=/vault/config.json
restart: always
network_mode: host
cap_add:
- IPC_LOCK
Start Vault
docker-compose up
vault_1 | ==> Vault server configuration:
vault_1 |
vault_1 | Api Address: http://127.0.0.1:8200
vault_1 | Cgo: disabled
vault_1 | Cluster Address: https://127.0.0.1:8201
vault_1 | Go Version: go1.14.4
vault_1 | Listener 1: tcp (addr: "0.0.0.0:8200", cluster address: "0.0.0.0:8201", max_request_duration: "1m30s", max_request_size: "33554432", tls: "disabled")
vault_1 | Log Level: info
vault_1 | Mlock: supported: true, enabled: true
vault_1 | Recovery Mode: false
vault_1 | Storage: file
vault_1 | Version: Vault v1.5.0
Initialize and unseal Vault:
http://192.168.1.102:8200key shares (1) and key threshold (1) and initialize./storage directorydocker-compose down && docker-compose upContent type
Image
Digest
Size
66 MB
Last updated
almost 6 years ago
docker pull ibacalu/vault