2020-11-04 11:01:51 -05:00
|
|
|
version: '2'
|
|
|
|
|
|
|
|
# ssh-agent && ssh-add -K ~/.ssh/id_rsa
|
|
|
|
# DOCKER_BUILDKIT=1 docker build --ssh default -t tornadocash/relayer .
|
|
|
|
services:
|
|
|
|
server:
|
|
|
|
image: tornadocash/relayer
|
|
|
|
restart: always
|
|
|
|
command: server
|
|
|
|
env_file: .env
|
|
|
|
ports:
|
|
|
|
- 8000:8000
|
|
|
|
environment:
|
|
|
|
REDIS_URL: redis://redis/0
|
|
|
|
nginx_proxy_read_timeout: 600
|
2020-11-04 14:23:14 -05:00
|
|
|
depends_on: [redis]
|
2020-11-04 11:01:51 -05:00
|
|
|
|
|
|
|
treeWatcher:
|
|
|
|
image: tornadocash/relayer
|
|
|
|
restart: always
|
|
|
|
command: treeWatcher
|
|
|
|
env_file: .env
|
|
|
|
environment:
|
|
|
|
REDIS_URL: redis://redis/0
|
2020-11-04 14:23:14 -05:00
|
|
|
depends_on: [redis]
|
2020-11-04 11:01:51 -05:00
|
|
|
|
|
|
|
priceWatcher:
|
|
|
|
image: tornadocash/relayer
|
|
|
|
restart: always
|
|
|
|
command: priceWatcher
|
|
|
|
env_file: .env
|
|
|
|
environment:
|
|
|
|
REDIS_URL: redis://redis/0
|
2020-11-04 14:23:14 -05:00
|
|
|
depends_on: [redis]
|
2020-11-04 11:01:51 -05:00
|
|
|
|
|
|
|
worker1:
|
|
|
|
image: tornadocash/relayer
|
|
|
|
restart: always
|
|
|
|
command: worker
|
|
|
|
env_file: .env
|
|
|
|
environment:
|
|
|
|
REDIS_URL: redis://redis/0
|
2020-11-04 14:23:14 -05:00
|
|
|
depends_on: [redis]
|
2020-11-04 11:01:51 -05:00
|
|
|
|
2020-11-04 14:23:14 -05:00
|
|
|
# worker2:
|
|
|
|
# image: tornadocash/relayer
|
|
|
|
# restart: always
|
|
|
|
# command: worker
|
|
|
|
# env_file: .env
|
|
|
|
# environment:
|
|
|
|
# PRIVATE_KEY: qwe
|
|
|
|
# REDIS_URL: redis://redis/0
|
2020-11-04 11:01:51 -05:00
|
|
|
|
|
|
|
redis:
|
|
|
|
image: redis
|
|
|
|
restart: always
|
2022-04-08 06:29:37 -04:00
|
|
|
ports:
|
|
|
|
- '6379:6379'
|
2020-11-04 11:01:51 -05:00
|
|
|
command: [redis-server, --appendonly, 'yes']
|
|
|
|
volumes:
|
|
|
|
- redis:/data
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
redis:
|