update dockerfile and start commands

This commit is contained in:
smart_ex 2022-07-28 17:29:03 +10:00
parent 74dbd94de8
commit 0ce5dcbf50
3 changed files with 6 additions and 6 deletions

@ -19,7 +19,7 @@ WORKDIR /app
RUN apk update && apk add --no-cache g++ make python3 && rm -rf /var/cache/apk/*
COPY --from=dev /usr/app/build /app
COPY --from=dev /usr/app/ /app
COPY --from=dev /usr/app/package.json /app/
COPY --from=dev /usr/app/yarn.lock /app/

@ -4,26 +4,26 @@ services:
server:
image: tornadocash/relayer:v5.0.0
restart: always
command: 'node app/index.js'
command: 'server'
env_file: .env
build:
context: .
dockerfile: Dockerfile
ports:
- 8000:8000
- '8000:8000'
depends_on: [redis]
txWorker:
image: tornadocash/relayer:v5.0.0
restart: unless-stopped
command: 'node txWorker.js'
command: 'txWorker'
env_file: .env
depends_on: [redis]
healthWorker:
image: tornadocash/relayer:v5.0.0
restart: unless-stopped
command: 'node healthWorker.js'
command: 'healthWorker'
env_file: .env
depends_on: [redis]

@ -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 && 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",