docker-compose.yml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. version: '2'
  2. services:
  3. server:
  4. image: tornadocash/relayer:mining
  5. restart: always
  6. command: server
  7. env_file: .env
  8. environment:
  9. REDIS_URL: redis://redis/0
  10. nginx_proxy_read_timeout: 600
  11. depends_on: [redis]
  12. treeWatcher:
  13. image: tornadocash/relayer:mining
  14. restart: always
  15. command: treeWatcher
  16. env_file: .env
  17. environment:
  18. REDIS_URL: redis://redis/0
  19. depends_on: [redis]
  20. priceWatcher:
  21. image: tornadocash/relayer:mining
  22. restart: always
  23. command: priceWatcher
  24. env_file: .env
  25. environment:
  26. REDIS_URL: redis://redis/0
  27. depends_on: [redis]
  28. healthWatcher:
  29. image: tornadocash/relayer:mining
  30. restart: always
  31. command: healthWatcher
  32. env_file: .env
  33. environment:
  34. REDIS_URL: redis://redis/0
  35. depends_on: [redis]
  36. worker1:
  37. image: tornadocash/relayer:mining
  38. restart: always
  39. command: worker
  40. env_file: .env
  41. environment:
  42. REDIS_URL: redis://redis/0
  43. depends_on: [redis]
  44. # worker2:
  45. # image: tornadocash/relayer:mining
  46. # restart: always
  47. # command: worker
  48. # env_file: .env
  49. # environment:
  50. # PRIVATE_KEY: qwe
  51. # REDIS_URL: redis://redis/0
  52. # # this container will proxy *.onion domain to the server container
  53. # # if you want to run *only* as .onion service, you don't need `nginx`, `letsencrypt`, `dockergen` containers
  54. # tor:
  55. # image: strm/tor
  56. # restart: always
  57. # depends_on: [server]
  58. # environment:
  59. # LISTEN_PORT: 80
  60. # REDIRECT: server:8000
  61. # # Generate a new key with
  62. # # docker run --rm --entrypoint shallot strm/tor-hiddenservice-nginx ^foo
  63. # PRIVATE_KEY: |
  64. # -----BEGIN RSA PRIVATE KEY-----
  65. # ...
  66. # -----END RSA PRIVATE KEY-----
  67. # # auto update docker containers when new image is pushed to docker hub (be careful with that)
  68. # watchtower:
  69. # image: v2tec/watchtower
  70. # restart: always
  71. # volumes:
  72. # - /var/run/docker.sock:/var/run/docker.sock
  73. # # this container will send Telegram notifications when other containers are stopped/restarted
  74. # # it's best to run this container on some other instance, otherwise it can't notify if the whole instance goes down
  75. # notifier:
  76. # image: poma/docker-telegram-notifier
  77. # restart: always
  78. # volumes:
  79. # - /var/run/docker.sock:/var/run/docker.sock:ro
  80. # environment:
  81. # # How to create bot: https://core.telegram.org/bots#3-how-do-i-create-a-bot
  82. # # How to get chat id: https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/32572159#32572159
  83. # TELEGRAM_NOTIFIER_BOT_TOKEN: ...
  84. # TELEGRAM_NOTIFIER_CHAT_ID: ...
  85. # # this container will send Telegram notifications if specified address doesn't have enough funds
  86. # monitor_mainnet:
  87. # image: peppersec/monitor_eth
  88. # restart: always
  89. # environment:
  90. # TELEGRAM_NOTIFIER_BOT_TOKEN: ...
  91. # TELEGRAM_NOTIFIER_CHAT_ID: ...
  92. # ADDRESS: '0x0000000000000000000000000000000000000000'
  93. # THRESHOLD: 0.5 # ETH
  94. # RPC_URL: https://mainnet.infura.io
  95. # BLOCK_EXPLORER: etherscan.io
  96. redis:
  97. image: redis
  98. restart: always
  99. command: [redis-server, --appendonly, 'yes']
  100. volumes:
  101. - redis:/data
  102. nginx:
  103. image: nginx:alpine
  104. container_name: nginx
  105. restart: always
  106. ports:
  107. - 80:80
  108. - 443:443
  109. volumes:
  110. - conf:/etc/nginx/conf.d
  111. - vhost:/etc/nginx/vhost.d
  112. - html:/usr/share/nginx/html
  113. - certs:/etc/nginx/certs
  114. logging:
  115. driver: none
  116. dockergen:
  117. image: poma/docker-gen
  118. container_name: dockergen
  119. restart: always
  120. command: -notify-sighup nginx -watch /etc/docker-gen/templates/nginx.tmpl /etc/nginx/conf.d/default.conf
  121. volumes_from:
  122. - nginx
  123. volumes:
  124. - /var/run/docker.sock:/var/run/docker.sock:ro
  125. letsencrypt:
  126. image: jrcs/letsencrypt-nginx-proxy-companion
  127. container_name: letsencrypt
  128. restart: always
  129. environment:
  130. NGINX_DOCKER_GEN_CONTAINER: dockergen
  131. volumes_from:
  132. - nginx
  133. - dockergen
  134. volumes:
  135. conf:
  136. vhost:
  137. html:
  138. certs:
  139. redis: