-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose-vault.yml
More file actions
46 lines (42 loc) · 1007 Bytes
/
docker-compose-vault.yml
File metadata and controls
46 lines (42 loc) · 1007 Bytes
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
42
43
44
45
46
version: '3'
networks:
concourse:
external:
name: "${ENV_NETWORK}"
volumes:
consul-volume:
driver: "${ENV_VOLUME_DRIVER}"
services:
vault:
container_name: "vault"
image: vault:$VAULT_VERSION
restart: unless-stopped # required so that it retries until concourse-db comes up
ports:
- "8200:8200"
command:
- /bin/sh
- -ec
- docker-entrypoint.sh vault server -config=/vault/config
depends_on:
- consul
volumes:
- ./config_vault:/vault/config
networks:
- concourse
cap_add:
- IPC_LOCK
consul:
container_name: "consul"
image: consul:$CONSUL_VERSION
restart: unless-stopped # required so that it retries until concourse-db comes up
ports:
- "8500:8500"
command:
- /bin/sh
- -ec
- docker-entrypoint.sh consul agent -config-dir=/consul/config
volumes:
- consul-volume:/consul/data
- ./config_consul:/consul/config
networks:
- concourse