-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathdocker-compose.example.yml
99 lines (93 loc) · 2.07 KB
/
docker-compose.example.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
90
91
92
93
94
95
96
97
98
99
version: "3.8"
services:
app:
build:
context: ./app
args:
- NODE_ENV=development
depends_on:
- service
environment:
- NODE_ENV=development
- NODE_OPTIONS=--openssl-legacy-provider
- CHOKIDAR_USEPOLLING=true
- SSL=false
- REACT_APP_SERVICE_URL=http://localhost:8480
- REACT_APP_TITLE=Bitgesell-WBGL Bridge
tty: true
ports:
- "8406:19006"
- "8401:19001"
- "8402:19002"
volumes:
- ./app:/app:delegated
- ./app/package.json:/app/package.json
- /app/node_modules
command: yarn start
healthcheck:
disable: true
service:
build:
context: ./service
args:
- NODE_ENV=development
depends_on:
- core
- db
environment:
NODE_ENV: development
PORT: 8480
RPC_HOST: core
RPC_PORT: 8455
RPC_USER: localuser
RPC_PASSWORD: devpass
BGL_MIN_CONFIRMATIONS: 3
ETH_ENDPOINT: ""
ETH_ACCOUNT: ""
ETH_PRIVKEY: ""
ETH_CONTRACT_ADDRESS: ""
ETH_MIN_CONFIRMATIONS: 3
BSC_ENDPOINT: ""
BSC_ACCOUNT: ""
BSC_PRIVKEY: ""
BSC_CONTRACT_ADDRESS: ""
BSC_MIN_CONFIRMATIONS: 3
DB_CONNECTION: mongodb://root:dev@db:27017
DB_DATABASE: wbgl_bridge
FEE_PERCENTAGE: 1
ports:
- "8480:8480"
volumes:
- ./service:/service:delegated
- ./service/package.json:/service/package.json
- /service/node_modules
command: yarn dev
core:
build:
context: ./docker
volumes:
- /root/.BGL
ports:
- "8455"
db:
image: mongo
environment:
- MONGO_INITDB_DATABASE=wbgl_bridge
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=dev
volumes:
- mongodb:/data/db
- mongodb_config:/data/configdb
mongo-express:
image: mongo-express
ports:
- "8481:8081"
depends_on:
- db
environment:
- ME_CONFIG_MONGODB_SERVER=db
- ME_CONFIG_MONGODB_ADMINUSERNAME=root
- ME_CONFIG_MONGODB_ADMINPASSWORD=dev
volumes:
mongodb:
mongodb_config: