-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
51 lines (51 loc) · 1.01 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
50
51
networks:
services:
services:
block:
build:
context: .
dockerfile: cmd/block/Dockerfile
command: >
block
--bind-interface="eth0"
--config-dir="/config"
--manager-addr="manager:15760"
--verbose
depends_on:
- manager
networks:
- services
volumes:
- block:/config
consul:
command: agent -bind '{{ GetInterfaceIP "eth0" }}' -client '{{ GetInterfaceIP "eth0" }}' -dev
image: consul:1.9
networks:
- services
ports:
- 8500:8500
volumes:
- consul:/consul/data
manager:
build:
context: .
dockerfile: cmd/manager/Dockerfile
command: >
manager
--bind-interface="eth0"
--config-dir="/config"
--consul-addr="http://consul:8500"
--verbose
depends_on:
- consul
networks:
- services
ports:
- 15760:15760
volumes:
- manager:/config
version: "3.7"
volumes:
block:
consul:
manager: