-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
49 lines (47 loc) · 1.18 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
48
49
version: "3"
services:
client:
image: kasterma/vip:1.0.1
command: sh -c 'while true; do echo "client container still running"; sleep 60; done'
environment:
VAULT_ADDR: http://vault:8200
PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/
volumes:
- ./vaultmanager:/vaultmanager
vault:
image: vault:1.5.3
command: server
cap_add:
- IPC_LOCK
environment:
VAULT_ADDR: http://127.0.0.1:8200
VAULT_LOCAL_CONFIG: |
'{
"listener": {
"tcp":{
"address": "0.0.0.0:8200",
"cluster_addr": "0.0.0.0:8201",
"tls_disable": true
}
},
"backend": {"file": {"path": "/vault/file"}},
"default_lease_ttl": "168h",
"max_lease_ttl": "720h",
"ui": true
}'
ports:
- 8200:8200
volumes:
- vaultfile:/vault/file
- vaultlogs:/vault/logs
db:
image: postgres:10.4
environment:
POSTGRES_USER: vaultpg
POSTGRES_PASSWORD: monkey123
volumes:
- ./postgres/data:/pgdata
- ./postgres/initdb.d:/docker-entrypoint-initdb.d/
volumes:
vaultfile:
vaultlogs: