forked from yossisp/vault-agent-docker-compose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
40 lines (36 loc) · 876 Bytes
/
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
34
35
36
37
38
39
40
version: '3.9'
services:
vault-agent:
image: vault:1.11.2
restart: always
ports:
- "8200:8200"
volumes:
- ./helpers:/helpers
environment:
VAULT_ADDR: "http://vault:8200"
container_name: vault-agent
entrypoint: "vault agent -log-level debug -config=/helpers/vault-agent.hcl"
depends_on:
vault:
condition: service_healthy
vault:
image: vault:1.11.2
restart: always
volumes:
- ./helpers:/helpers
- vault_data:/vault/file
ports:
- "8201:8200/tcp"
cap_add:
- IPC_LOCK
container_name: vault
entrypoint: "vault server -config=/helpers/vault-config.hcl"
healthcheck:
test: wget --no-verbose --tries=1 --spider http://localhost:8200 || exit 1
interval: 10s
retries: 12
start_period: 10s
timeout: 10s
volumes:
vault_data: {}