forked from ineiti/fledger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
87 lines (84 loc) · 1.68 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
networks:
my_network:
driver: bridge
services:
flsignal:
build:
context: .
dockerfile: Dockerfile.flsignal
container_name: flsignal
ports:
- "8765:8765"
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "4"
networks:
- my_network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8765"]
interval: 10s
timeout: 5s
retries: 3
fledger:
build:
context: .
dockerfile: Dockerfile.fledger
environment:
- PATH_LEN=${PATH_LEN}
- RETRY=${RETRY}
deploy:
mode: replicated
# replicas: 1
replicas: ${FLEDGER_REPLICAS}
volumes:
- ./loopix_core_config.yaml:/fledger/loopix_core_config.yaml
command:
- "--config"
- "/fledger"
- "-v"
- "-s"
- "ws://flsignal:8765"
# - "--retry"
# - "${RETRY}"
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "4"
networks:
- my_network
depends_on:
- flsignal
fledger_1:
build:
context: .
dockerfile: Dockerfile.fledger
environment:
- PATH_LEN=${PATH_LEN}
# - RETRY=${RETRY}
deploy:
mode: replicated
replicas: 1
volumes:
- ./loopix_core_config.yaml:/fledger/loopix_core_config.yaml
command:
- "--config"
- "/fledger"
- "-v"
- "-s"
- "ws://flsignal:8765"
- "--path-len"
- "${PATH_LEN}"
# - "--retry"
# - "${RETRY}"
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "4"
networks:
- my_network
depends_on:
- flsignal