docker-compose.test.yml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. version: '2'
  2. # ssh-agent && ssh-add -K ~/.ssh/id_rsa
  3. # DOCKER_BUILDKIT=1 docker build --ssh default -t tornadocash/relayer .
  4. services:
  5. server:
  6. image: tornadocash/relayer
  7. restart: always
  8. command: server
  9. env_file: .env
  10. ports:
  11. - 8000:8000
  12. environment:
  13. REDIS_URL: redis://redis/0
  14. nginx_proxy_read_timeout: 600
  15. depends_on: [redis]
  16. treeWatcher:
  17. image: tornadocash/relayer
  18. restart: always
  19. command: treeWatcher
  20. env_file: .env
  21. environment:
  22. REDIS_URL: redis://redis/0
  23. depends_on: [redis]
  24. priceWatcher:
  25. image: tornadocash/relayer
  26. restart: always
  27. command: priceWatcher
  28. env_file: .env
  29. environment:
  30. REDIS_URL: redis://redis/0
  31. depends_on: [redis]
  32. worker1:
  33. image: tornadocash/relayer
  34. restart: always
  35. command: worker
  36. env_file: .env
  37. environment:
  38. REDIS_URL: redis://redis/0
  39. depends_on: [redis]
  40. # worker2:
  41. # image: tornadocash/relayer
  42. # restart: always
  43. # command: worker
  44. # env_file: .env
  45. # environment:
  46. # PRIVATE_KEY: qwe
  47. # REDIS_URL: redis://redis/0
  48. redis:
  49. image: redis
  50. restart: always
  51. ports:
  52. - '6379:6379'
  53. command: [redis-server, --appendonly, 'yes']
  54. volumes:
  55. - redis:/data
  56. volumes:
  57. redis: