-
Notifications
You must be signed in to change notification settings - Fork 0
/
local-build-docker-compose.yml
83 lines (78 loc) · 1.59 KB
/
local-build-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
version: '3'
services:
broker:
#image: ghcr.io/d8-x/d8x-broker-server:dev
build:
context: .
dockerfile: ./cmd/brokerapi/Dockerfile
restart: always
depends_on:
- redis
ports:
# Default svc port is 8001
- 8001:8001
networks:
- app-net
environment:
REDIS_ADDR: "${REDIS_ADDR}"
REDIS_PW: "${REDIS_PW}"
CONFIG_PATH: /chain_config
CONFIG_RPC_PATH: /rpc_config
KEYFILE_PATH: /keyfile/
logging:
options:
max-size: "10m"
max-file: "10"
configs:
- chain_config
- rpc_config
volumes:
- mydata:/keyfile
executorws:
#image: ghcr.io/d8-x/d8x-broker-exec-ws:dev
build:
context: .
dockerfile: ./cmd/executorws/Dockerfile
restart: always
depends_on:
- redis
ports:
# Default svc port is 8080
- 8080:8080
networks:
- app-net
environment:
REDIS_ADDR: "${REDIS_ADDR}"
REDIS_PW: "${REDIS_PW}"
WS_ADDR: "${WS_ADDR}"
BROKER_FEE_TBPS: "${BROKER_FEE_TBPS}"
CONFIG_PATH: /chain_config
logging:
options:
max-size: "10m"
max-file: "10"
configs:
- chain_config
redis:
image: redis
command: redis-server --requirepass ${REDIS_PW}
environment:
- TZ=UTC
ports:
- "6379:6379"
networks:
- app-net
restart: on-failure
logging:
options:
max-size: "10m"
max-file: "10"
networks:
app-net:
configs:
chain_config:
file: ./config/chainConfig.json
rpc_config:
file: ./config/rpc.json
volumes:
mydata: