docker-compose.yml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. version: '3'
  2. services:
  3. tor:
  4. tty: true
  5. stdin_open: true
  6. build:
  7. context: ..
  8. dockerfile: docker/tor.Dockerfile
  9. networks:
  10. - 0net-network
  11. environment: &tor-environments
  12. # since we are using tor internally, password doesn't really matter
  13. TOR_CONTROL_PASSWD: some_password
  14. TOR_SOCKS_PORT: 9050
  15. TOR_CONTROL_PORT: 9051
  16. 0net-conservancy:
  17. tty: true
  18. stdin_open: true
  19. build:
  20. context: ..
  21. dockerfile: docker/Dockerfile
  22. networks:
  23. - 0net-network
  24. volumes:
  25. # NOTE: this refers to docker/data..
  26. - ./data:/home/service-0net/data
  27. ports:
  28. - "26552:26552"
  29. - "127.0.0.1:43110:43110"
  30. depends_on:
  31. - tor
  32. environment:
  33. TOR_ENABLED: enable
  34. <<: *tor-environments
  35. # integrated container with tor
  36. 0net-tor:
  37. tty: true
  38. stdin_open: true
  39. build:
  40. context: ..
  41. dockerfile: docker/znctor.Dockerfile
  42. networks:
  43. - 0net-network
  44. volumes:
  45. # NOTE: this refers to docker/data..
  46. - ./data:/home/service-0net/data
  47. ports:
  48. - "26552:26552"
  49. - "127.0.0.1:43110:43110"
  50. networks:
  51. 0net-network: