-
Notifications
You must be signed in to change notification settings - Fork 0
/
vault.yaml
35 lines (35 loc) · 1.06 KB
/
vault.yaml
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
34
35
networks:
vault-bridge:
driver: bridge
services:
vault:
networks:
- vault-bridge
image: docker.io/vault:1.12.3
container_name: vault.community2024.local
environment:
#VAULT_ADDR: "https://vault.community2024.local:8200"
#VAULT_API_ADDR: "https://vault.community2024.local:8200"
#VAULT_ADDRESS: "https://vault.community2024.local:8200"
VAULT_CACERT: /certs/ca.crt
# VAULT_UI: true
# VAULT_TOKEN:
ports:
- "8200:8200"
- "8201:8201"
restart: always
volumes:
- ./container-configs/vault/logs:/vault/logs/:rw
- ./container-configs/vault/data:/vault/data/:rw
- ./container-configs/vault/config:/vault/config/:rw
- ./container-configs/vault/certs:/certs/:rw
- ./container-configs/vault/file:/vault/file/:rw
cap_add:
- IPC_LOCK
healthcheck:
test: [ "CMD", "wget", "--spider", "http://127.0.0.1:8200/v1/sys/health" ]
interval: 10s
timeout: 3s
retries: 10
start_period: 5s
entrypoint: vault server -config /vault/config/config.hcl