forked from marco-lancini/docker_vault
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
47 lines (43 loc) · 1.14 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
version: '3.5'
services:
consul:
container_name: consul
image: consul:latest
networks:
- kountnet
ports:
- "8500:8500"
- "8300:8300"
volumes:
- ./config:/config
- ./_data/consul:/data
# https://github.com/hashicorp/consul/issues/1580 -- raft-protocol 3 is required!
command: agent -raft-protocol 3 -server -data-dir=/data -bind 0.0.0.0 -client 0.0.0.0 -bootstrap-expect=1 -datacenter internal -ui
vault:
container_name: vault
image: vault:latest
networks:
- kountnet
depends_on:
- consul
ports:
- "8200:8200"
volumes:
- ./config:/config
- ./_data/consul:/data
cap_add:
- IPC_LOCK
command: server -config=/config/vault.hcl
backup:
container_name: backup
build: backup/
networks:
- kountnet
depends_on:
- consul
volumes:
- ./_data/backup:/backup/
command: consul-backup
networks:
kountnet:
name: kountnet