update start command, cleanup
This commit is contained in:
parent
833b89c617
commit
5a8b6247a9
@ -23,6 +23,6 @@ COPY --from=dev /usr/app/ /app
|
|||||||
COPY --from=dev /usr/app/package.json /app/
|
COPY --from=dev /usr/app/package.json /app/
|
||||||
COPY --from=dev /usr/app/yarn.lock /app/
|
COPY --from=dev /usr/app/yarn.lock /app/
|
||||||
|
|
||||||
RUN yarn install --network-concurrency 2 && yarn cache clean -f
|
RUN yarn install && yarn cache clean -f
|
||||||
|
|
||||||
ENTRYPOINT ["yarn"]
|
ENTRYPOINT ["yarn"]
|
||||||
|
@ -63,10 +63,9 @@ docker-compose up -d --pull
|
|||||||
1. `yarn`
|
1. `yarn`
|
||||||
2. `cp .env.example .env`
|
2. `cp .env.example .env`
|
||||||
3. Modify `.env` as needed
|
3. Modify `.env` as needed
|
||||||
4. `docker-compose up -d redis`
|
4. `yarn start`
|
||||||
5. `yarn start`
|
5. Go to `http://127.0.0.1:8000`
|
||||||
6. Go to `http://127.0.0.1:8000`
|
6. In order to execute withdraw request, you can run following command
|
||||||
7. In order to execute withdraw request, you can run following command
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
curl -X POST -H 'content-type:application/json' --data '<input data>' http://127.0.0.1:8000/v1/tornadoWithdraw
|
curl -X POST -H 'content-type:application/json' --data '<input data>' http://127.0.0.1:8000/v1/tornadoWithdraw
|
||||||
|
@ -2,7 +2,7 @@ version: '3.7'
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
server:
|
server:
|
||||||
image: tornadocash/relayer:v5.0.0
|
image: tornadocash/relayer
|
||||||
restart: always
|
restart: always
|
||||||
command: 'server'
|
command: 'server'
|
||||||
env_file: .env
|
env_file: .env
|
||||||
@ -14,14 +14,14 @@ services:
|
|||||||
depends_on: [redis]
|
depends_on: [redis]
|
||||||
|
|
||||||
txWorker:
|
txWorker:
|
||||||
image: tornadocash/relayer:v5.0.0
|
image: tornadocash/relayer
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
command: 'txWorker'
|
command: 'txWorker'
|
||||||
env_file: .env
|
env_file: .env
|
||||||
depends_on: [redis]
|
depends_on: [redis]
|
||||||
|
|
||||||
healthWorker:
|
healthWorker:
|
||||||
image: tornadocash/relayer:v5.0.0
|
image: tornadocash/relayer
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
command: 'healthWorker'
|
command: 'healthWorker'
|
||||||
env_file: .env
|
env_file: .env
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"version": "5.0.0",
|
"version": "5.0.0",
|
||||||
"description": "Relayer for Tornado.cash privacy solution. https://tornado.cash",
|
"description": "Relayer for Tornado.cash privacy solution. https://tornado.cash",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "yarn build && yarn server & yarn txWorker & yarn healthWorker",
|
"start": "yarn build; docker-compose up -d redis; yarn server & yarn txWorker & yarn healthWorker",
|
||||||
"server": "node build/src/app/index.js",
|
"server": "node build/src/app/index.js",
|
||||||
"txWorker": "node build/src/txWorker.js",
|
"txWorker": "node build/src/txWorker.js",
|
||||||
"healthWorker": "node build/src/healthWorker.js",
|
"healthWorker": "node build/src/healthWorker.js",
|
||||||
|
@ -30,7 +30,6 @@ export function mainHandler(server: FastifyInstance, options, next) {
|
|||||||
netId: configService.netId,
|
netId: configService.netId,
|
||||||
ethPrices,
|
ethPrices,
|
||||||
tornadoServiceFee,
|
tornadoServiceFee,
|
||||||
miningServiceFee: 0,
|
|
||||||
version,
|
version,
|
||||||
health,
|
health,
|
||||||
currentQueue,
|
currentQueue,
|
||||||
|
@ -66,7 +66,6 @@ const statusResponseSchema = {
|
|||||||
netId: { type: 'integer' },
|
netId: { type: 'integer' },
|
||||||
version: { type: 'string' },
|
version: { type: 'string' },
|
||||||
tornadoServiceFee: { type: 'number' },
|
tornadoServiceFee: { type: 'number' },
|
||||||
miningServiceFee: { type: 'number' },
|
|
||||||
currentQueue: { type: 'number' },
|
currentQueue: { type: 'number' },
|
||||||
ethPrices: { type: 'object', additionalProperties: true },
|
ethPrices: { type: 'object', additionalProperties: true },
|
||||||
instances: { type: 'object', additionalProperties: true },
|
instances: { type: 'object', additionalProperties: true },
|
||||||
|
Loading…
Reference in New Issue
Block a user