-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
executable file
·33 lines (29 loc) · 1.04 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Installation: https://hub.docker.com/r/hashicorp/vault
# “core: seal configuration missing, not initialized” error -
# Usually this error is shown when the Vault’s storage backend is not initialized. -
# You can initialize it with `vault operator init`.
# https://www.misterpki.com/vault-docker/
# https://www.bogotobogo.com/DevOps/Docker/Docker-Vault-Consul-B.php
services:
hashicorp-vault-server:
image: hashicorp/vault:1.18
container_name: hashicorp-vault-server
ports:
- 1031:8200
volumes:
- ./config:/vault/config # Config
- /opt/appdata/vault/file:/vault/file # Data of file storage with Policies, Data, and Logs.
environment:
- VAULT_ADDR=${HASHICORP_VAULT_SERVER_VAULT_ADDR}
- VAULT_API_ADDR=${HASHICORP_VAULT_SERVER_VAULT_API_ADDR}
- VAULT_ADDRESS=${HASHICORP_VAULT_SERVER_VAULT_ADDRESS}
command: vault server -config=/vault/config/config.hcl
cap_add:
- IPC_LOCK
restart: unless-stopped
networks:
- proxy
networks:
proxy:
driver: bridge
external: true