-
Notifications
You must be signed in to change notification settings - Fork 81
/
kontena-feature.yml
134 lines (130 loc) · 4.58 KB
/
kontena-feature.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
---
stack: ludx/dappshellfeature-stack
version: 0.1.0
services:
particld1:
image: ludx/particl:0.18
instances: 1
volumes:
- /root/data/particld-feature1:/root/.particl
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
ports:
- 52738:51738
- 52935:51935
affinity:
- node==kontena-agent1
particld2:
image: ludx/particl:0.18
instances: 1
volumes:
- /root/data/particld-feature2:/root/.particl
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
ports:
- 53738:51738
- 53935:51935
affinity:
- node==kontena-agent1
app1:
image: ludx/particl-market-ci:feature
instances: 1
depends_on:
- particld1
links:
- particld1
- loadbalancerstack/internet-lb
volumes:
- /root/data/particl-market-feature1:/app/data
command: bin/ci-entrypoint.sh
environment:
- NODE_ENV=development
- APP_NAME=particl-market
- APP_HOST=http://feature1.particl.xyz
- APP_URL_PREFIX=/api
- APP_PORT=3333
- RPCUSER=test
- RPCPASSWORD=test
- RPCHOSTNAME=particld1
- MAINNET_PORT=51738
- TESTNET_PORT=51935
- LOG_LEVEL=debug
- LOG_ADAPTER=winston
- API_INFO_ENABLED=true
- API_INFO_ROUTE=/info
- CLI_ENABLED=true
- CLI_ROUTE=/cli
- MONITOR_ENABLED=true
- MONITOR_ROUTE=/status
- DB_CLIENT=sqlite3
- DB_CONNECTION=/app/data/database/market.db
- DB_POOL_MIN=2
- DB_POOL_MAX=10
- DB_MIGRATION_DIR=/app/src/database/migrations
- DB_MIGRATION_TABLE=version
- DB_SEEDS_DIR=/app/src/database/seeds
- KONTENA_LB_MODE=http
- KONTENA_LB_BALANCE=roundrobin
- KONTENA_LB_INTERNAL_PORT=3333
- KONTENA_LB_VIRTUAL_HOSTS=feature1.particl.xyz
affinity:
- node==kontena-agent1
cpus: 4.0
mem_limit: 2g
app2:
image: ludx/particl-market-ci:feature
instances: 1
depends_on:
- particld2
links:
- particld2
- loadbalancerstack/internet-lb
volumes:
- /root/data/particl-market-feature2:/app/data
command: bin/ci-entrypoint.sh
environment:
- NODE_ENV=development
- APP_NAME=particl-market
- APP_HOST=http://feature2.particl.xyz
- APP_URL_PREFIX=/api
- APP_PORT=3333
- RPCUSER=test
- RPCPASSWORD=test
- RPCHOSTNAME=particld2
- MAINNET_PORT=51738
- TESTNET_PORT=51935
- LOG_LEVEL=debug
- LOG_ADAPTER=winston
- API_INFO_ENABLED=true
- API_INFO_ROUTE=/info
- CLI_ENABLED=true
- CLI_ROUTE=/cli
- MONITOR_ENABLED=true
- MONITOR_ROUTE=/status
- DB_CLIENT=sqlite3
- DB_CONNECTION=/app/data/database/market.db
- DB_POOL_MIN=2
- DB_POOL_MAX=10
- DB_MIGRATION_DIR=/app/src/database/migrations
- DB_MIGRATION_TABLE=version
- DB_SEEDS_DIR=/app/src/database/seeds
- KONTENA_LB_MODE=http
- KONTENA_LB_BALANCE=roundrobin
- KONTENA_LB_INTERNAL_PORT=3333
- KONTENA_LB_VIRTUAL_HOSTS=feature2.particl.xyz
affinity:
- node==kontena-agent1