-
Notifications
You must be signed in to change notification settings - Fork 14
/
docker-compose.yml
47 lines (44 loc) · 919 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
37
38
39
40
41
42
43
44
45
46
47
version: '3.6'
services:
consul:
image: consul:${CONSUL_VERSION}
container_name: consul
command: >-
agent
-bind=0.0.0.0
-config-file=/config.json
volumes:
- ./config/consul.json:/config.json
networks:
- vault
ports:
- "9300:9300"
- "9500:9500"
- "9600:9600/udp"
vault:
image: vault:${VAULT_VERSION}
container_name: vault
ports:
- "9200:8200"
volumes:
- ./config/vault.json:/config.json
cap_add:
- IPC_LOCK
networks:
- vault
command: >-
server
-config=/config.json
client:
container_name: client
build:
context: .
dockerfile: Dockerfile
environment:
- CONSUL_HTTP_ADDR=host.docker.internal:9500
- VAULT_ADDR=http://host.docker.internal:9200
volumes:
- ./client-scripts:/mnt/data
command: tail -f /dev/null
networks:
vault: