-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
89 lines (83 loc) · 2.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
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
88
89
version: "3.7"
services:
frontend:
build:
context: ./compose/frontend
environment:
- REACT_APP_HUB_REQUEST_HEADER=
- REACT_APP_HTLC_CONTRACT_ADDRESS=
- REACT_APP_SENDER_HOST=
volumes:
- .:/app
restart: always
fxp1:
build:
context: ./compose/backend/fxp
dockerfile: fxp.Dockerfile
environment:
- PORT=
- FXP_ID=
- FXP_BASE_URL=
- HUB_URL=
- HUB_REQUEST_HEADER=
- FX_API_BASE_URL=
- JSON_RPC_PROVIDER_URL=
- HTLC_CONTRACT_ADDRESS=
volumes:
- ./compose/backend/fxp/db/fxp1:/app/db
- ./compose/lockDuration.txt:/app/lockDuration.txt
secrets:
- rpc_user
- rpc_password
- fxp1_wallet_password
command: node fxp_api.js
restart: always
fxp2:
build:
context: ./compose/backend/fxp
dockerfile: fxp.Dockerfile
environment:
- PORT=
- FXP_ID=
- FXP_BASE_URL=
- HUB_URL=
- HUB_REQUEST_HEADER=
- FX_API_BASE_URL=
- JSON_RPC_PROVIDER_URL=
- HTLC_CONTRACT_ADDRESS=
volumes:
- ./compose/backend/fxp/db/fxp2:/app/db
- ./compose/lockDuration.txt:/app/lockDuration.txt
secrets:
- rpc_user
- rpc_password
- fxp2_wallet_password
command: node fxp_api.js
restart: always
psp:
build:
context: ./compose/backend/psp
dockerfile: psp.Dockerfile
environment:
- PORT=
- JSON_RPC_PROVIDER_URL=
- HTLC_CONTRACT_ADDRESS=
volumes:
- ./compose/backend/psp/db:/app/db
- ./compose/lockDuration.txt:/app/lockDuration.txt
secrets:
- rpc_user
- rpc_password
command: node psp_api.js
restart: always
secrets:
rpc_user:
file: ./compose/secrets/rpc_user.txt
rpc_password:
file: ./compose/secrets/rpc_password.txt
rpc_header:
file: ./compose/secrets/rpc_header.txt
fxp1_wallet_password:
file: ./compose/secrets/fxp1_wallet_password.txt
fxp2_wallet_password:
file: ./compose/secrets/fxp2_wallet_password.txt