-
Notifications
You must be signed in to change notification settings - Fork 81
/
docker-compose-dev.yml
162 lines (155 loc) · 5.76 KB
/
docker-compose-dev.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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
version: '2.4'
services:
app1:
build:
context: ./
dockerfile: Dockerfile.dev
volumes:
- .:/usr/src/app/:delegated
# - ./yarn.lock:/app/yarn.lock
# - ./data/app1_dist:/usr/src/app/dist
- ./data/app1:/usr/src/app/data:delegated
- /usr/src/app/node_modules
# - ./data/app1_node_modules:/usr/src/app/node_modules:delegated
ports:
- 3100:3100
command: bin/entrypoint.sh
links:
- particld1
depends_on:
- particld1
env_file:
- .env.docker-compose
environment:
- NODE_ENV=development
- APP_PORT=3100
- RPCUSER=test
- RPCPASSWORD=test
- RPCHOSTNAME=particld1
- ZMQ_PORT=54235
- MAINNET_PORT=51738
- TESTNET_PORT=51935
- STANDALONE=true
# cpus: '2.00'
# mem_limit: '500M'
app2:
build:
context: ./
dockerfile: Dockerfile.dev
volumes:
- .:/usr/src/app/:delegated
# - ./yarn.lock:/app/yarn.lock
# - ./data/app2_dist:/app/dist
- ./data/app2:/usr/src/app/data:delegated
- /usr/src/app/node_modules
# - ./data/app2_node_modules:/usr/src/app/node_modules:delegated
ports:
- 3200:3200
command: bin/entrypoint.sh
links:
- particld2
depends_on:
- particld2
env_file:
- .env.docker-compose
environment:
- NODE_ENV=development
- APP_PORT=3200
- RPCUSER=test
- RPCPASSWORD=test
- RPCHOSTNAME=particld2
- MAINNET_PORT=51738
- TESTNET_PORT=51935
- STANDALONE=true
# cpus: '2.00'
# mem_limit: '500M'
# gui1:
# image: market-gui
# build:
# context: ../particl-desktop
# dockerfile: Dockerfile
# volumes:
# - ../particl-desktop/:/app/:delegated
# - ./data/gui1_node_modules:/app/node_modules:delegated
# ports:
# - 4300:4200
# command: bin/entrypoint.sh
# links:
# - app1
# - particld1
# depends_on:
# - app1
# - particld1
# environment:
# - NODE_ENV=development
# - GUI_ENV=docker1
# - PORT=4200
# gui2:
# image: market-gui
# build:
# context: ../particl-desktop
# dockerfile: Dockerfile
# volumes:
# - ../particl-desktop/:/app/:delegated
# - ./data/gui2_node_modules:/app/node_modules:delegated
# ports:
# - 4400:4200
# command: bin/entrypoint.sh
# links:
# - app2
# - particld2
# depends_on:
# - app2
# - particld2
# environment:
# - NODE_ENV=development
# - GUI_ENV=docker2
# - PORT=4200
particld1:
image: ludx/particl:0.19.1.1
volumes:
- ./data/particl1:/root/.particl:cached
ports:
- 52935:51935
- 52936:51936
- 52938:51938
# command: entrypoint.sh particld -reindex-chainstate
environment:
- CONF_TESTNET=1 # Use the test chain
- CONF_RPCUSERNAME=test # Username for JSON-RPC connections, generated unless set
- CONF_RPCPASSWORD=test # Password for JSON-RPC connections, generated unless set
# - CONF_RPCPORT=52935
- CONF_PRINTTOCONSOLE=0 # Send trace/debug info to console instead of debug.log file
# - CONF_ONLYNET=onion # Only connect to nodes in network: ipv4, ipv6 or onion
# - CONF_PROXY=127.0.0.1:9050 # Connect through SOCKS5 proxy
# - CONF_ONION=127.0.0.1:9050 # Use separate SOCKS5 proxy to reach peers via Tor hidden services (default: -proxy)
- CONF_SERVER=1 # Accept command line and JSON-RPC commands
# - CONF_RPCALLOWIP=*
- CONF_RPCALLOWIP=0.0.0.0/0 # Allow JSON-RPC connections from specified source. Valid for <ip> are a single IP (e.g. 1.2.3.4), a network/netmask (e.g. 1.2.3.4/255.255.255.0) or a network/CIDR (e.g. 1.2.3.4/24).
# - CONF_REST=0 # Accept public REST requests (default: 0)
- CONF_LISTEN=1 # Accept connections from outside (default: 1 if no -proxy or -connect)
# - CONF_LISTENONION=1 # Automatically create Tor hidden service (default: 1)
# - CONF_TORCONTROL=127.0.0.1:9051 # Tor control port to use if onion listening enabled (default: 127.0.0.1:9051)
# - CONF_TORPASSWORD=particltor # Tor control port password, generated unless set
# - CONF_DISCOVER=1 # Discover own IP address (default: 1 when listening and no -externalip)
# - CONF_BIND=127.0.0.1 # Bind to given address and always listen on it. Use [host]:port notation for IPv6
# - CONF_DEBUG=tor # Output debugging information: 0/1, addrman, alert, bench, cmpctblock, coindb, db, http, libevent, lock, mempool, mempoolrej, net, proxy, prune, rand, reindex, rpc, selectcoins, tor, zmq, qt.
- CREATEDEFAULTMASTERKEY=true
particld2:
image: ludx/particl:0.19.1.1
volumes:
- ./data/particl2:/root/.particl:cached
ports:
- 53935:51935
- 53936:51936
- 53938:51938
# command: entrypoint.sh particld -reindex-chainstate
environment:
- CONF_TESTNET=1 # Use the test chain
- CONF_RPCUSERNAME=test # Username for JSON-RPC connections, generated unless set
- CONF_RPCPASSWORD=test # Password for JSON-RPC connections, generated unless set
- CONF_PRINTTOCONSOLE=0 # Send trace/debug info to console instead of debug.log file
- CONF_SERVER=1 # Accept command line and JSON-RPC commands
- CONF_RPCALLOWIP=0.0.0.0/0 # Allow JSON-RPC connections from specified source. Valid for <ip> are a single IP (e.g. 1.2.3.4), a network/netmask (e.g. 1.2.3.4/255.255.255.0) or a network/CIDR (e.g. 1.2.3.4/24).
- CONF_LISTEN=1 # Accept connections from outside (default: 1 if no -proxy or -connect)
- CREATEDEFAULTMASTERKEY=true