-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
36 lines (36 loc) · 906 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
version: '3'
services:
consul:
build:
context: ./consul
container_name: consul
volumes:
- consul_data:/consul/data
environment:
- CONSUL_ALLOW_PRIVILEGED_PORTS=
ports:
- "8500:8500"
restart: always
command: "consul agent -server -node=server-1 -bootstrap-expect=1 -client=0.0.0.0 -config-file=/consul/config/consul-config.json"
vault:
build:
context: ./vault/
image: vault:custom
container_name: vault
volumes:
- vault_logs:/vault/logs
- vault_file:/vault/file
environment:
- VAULT_ADDR=http://127.0.0.1:8200
cap_add:
- IPC_LOCK
depends_on:
- consul
ports:
- "8200:8200"
restart: always
command: "vault server -config=/vault/config/vault-config.hcl"
volumes:
consul_data:
vault_logs:
vault_file: