docker-compose.yml 942 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. version: '3'
  2. services:
  3. tor:
  4. tty: true
  5. stdin_open: true
  6. build:
  7. context: .
  8. dockerfile: Dockerfile.tor
  9. networks:
  10. - 0net-network
  11. ports:
  12. - "9050:9050"
  13. - "9051:9051"
  14. environment: &tor-environments
  15. TOR_CONTROL_PASSWD: some_password
  16. TOR_SOCKS_PORT: 9050
  17. TOR_CONTROL_PORT: 9051
  18. 0net:
  19. tty: true
  20. stdin_open: true
  21. build:
  22. context: .
  23. networks:
  24. - 0net-network
  25. volumes:
  26. - 0net-data:/app/data
  27. ports:
  28. - "26552:26552"
  29. - "43110:43110"
  30. depends_on:
  31. - tor
  32. environment:
  33. TOR_ENABLED: enable
  34. <<: *tor-environments
  35. 0net-tor:
  36. tty: true
  37. stdin_open: true
  38. build:
  39. context: .
  40. dockerfile: Dockerfile.integrated_tor
  41. networks:
  42. - 0net-network
  43. volumes:
  44. - 0net-data:/app/data
  45. ports:
  46. - "26552:26552"
  47. - "43110:43110"
  48. volumes:
  49. 0net-data:
  50. networks:
  51. 0net-network: