docker-compose.yml 3.7 KB

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