forked from aarnaud/vault-pki-exporter
-
Notifications
You must be signed in to change notification settings - Fork 1
/
compose.yaml
41 lines (41 loc) · 951 Bytes
/
compose.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
36
37
38
39
40
41
version: "3"
networks:
vault-pki-exporter:
services:
vault:
image: hashicorp/vault:1.14.1
networks:
- vault-pki-exporter
ports:
- 8200:8200
environment:
- VAULT_ADDR=http://127.0.0.1:8200
- VAULT_DEV_ROOT_TOKEN_ID=thisisatokenvalue
- VAULT_LISTEN_ADDRESS="0.0.0.0:8200"
- VAULT_ADDRESS="0.0.0.0:8200"
healthcheck:
test: vault status
interval: 2s
retries: 5
timeout: 5s
volumes:
- ./vault-setup.sh:/vault-setup.sh
entrypoint: "sh vault-setup.sh"
vault-pki-exporter:
build:
dockerfile: Dockerfile
command:
- ./vault-pki-exporter
- --fetch-interval=5s
- --refresh-interval=5s
networks:
- vault-pki-exporter
ports:
- 9333:9333
environment:
- VAULT_ADDR=http://vault:8200
- VAULT_TOKEN=thisisatokenvalue
depends_on:
vault:
condition: service_healthy
restart: always