mirror of
https://github.com/tornadocash/tornado-relayer.git
synced 2024-10-01 08:25:37 -04:00
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/yarn.lock /app/
|
||||
|
||||
RUN yarn install --network-concurrency 2 && yarn cache clean -f
|
||||
RUN yarn install && yarn cache clean -f
|
||||
|
||||
ENTRYPOINT ["yarn"]
|
||||
|
@ -63,10 +63,9 @@ docker-compose up -d --pull
|
||||
1. `yarn`
|
||||
2. `cp .env.example .env`
|
||||
3. Modify `.env` as needed
|
||||
4. `docker-compose up -d redis`
|
||||
5. `yarn start`
|
||||
6. Go to `http://127.0.0.1:8000`
|
||||
7. In order to execute withdraw request, you can run following command
|
||||
4. `yarn start`
|
||||
5. Go to `http://127.0.0.1:8000`
|
||||
6. In order to execute withdraw request, you can run following command
|
||||
|
||||
```bash
|
||||
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:
|
||||
server:
|
||||
image: tornadocash/relayer:v5.0.0
|
||||
image: tornadocash/relayer
|
||||
restart: always
|
||||
command: 'server'
|
||||
env_file: .env
|
||||
@ -14,14 +14,14 @@ services:
|
||||
depends_on: [redis]
|
||||
|
||||
txWorker:
|
||||
image: tornadocash/relayer:v5.0.0
|
||||
image: tornadocash/relayer
|
||||
restart: unless-stopped
|
||||
command: 'txWorker'
|
||||
env_file: .env
|
||||
depends_on: [redis]
|
||||
|
||||
healthWorker:
|
||||
image: tornadocash/relayer:v5.0.0
|
||||
image: tornadocash/relayer
|
||||
restart: unless-stopped
|
||||
command: 'healthWorker'
|
||||
env_file: .env
|
||||
|
@ -3,7 +3,7 @@
|
||||
"version": "5.0.0",
|
||||
"description": "Relayer for Tornado.cash privacy solution. https://tornado.cash",
|
||||
"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",
|
||||
"txWorker": "node build/src/txWorker.js",
|
||||
"healthWorker": "node build/src/healthWorker.js",
|
||||
|
@ -30,7 +30,6 @@ export function mainHandler(server: FastifyInstance, options, next) {
|
||||
netId: configService.netId,
|
||||
ethPrices,
|
||||
tornadoServiceFee,
|
||||
miningServiceFee: 0,
|
||||
version,
|
||||
health,
|
||||
currentQueue,
|
||||
|
@ -66,7 +66,6 @@ const statusResponseSchema = {
|
||||
netId: { type: 'integer' },
|
||||
version: { type: 'string' },
|
||||
tornadoServiceFee: { type: 'number' },
|
||||
miningServiceFee: { type: 'number' },
|
||||
currentQueue: { type: 'number' },
|
||||
ethPrices: { type: 'object', additionalProperties: true },
|
||||
instances: { type: 'object', additionalProperties: true },
|
||||
|
Loading…
Reference in New Issue
Block a user