mirror of
https://github.com/tornadocash/tornado-relayer
synced 2024-02-02 15:04:06 +01:00
update dockerfile and start commands
This commit is contained in:
parent
74dbd94de8
commit
0ce5dcbf50
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user