ansible-playbook.yml 711 B

1234567891011121314151617181920212223242526
  1. - hosts: [some-host]
  2. become: true
  3. tasks:
  4. - docker_network:
  5. name: tor_proxy_network
  6. driver_options:
  7. com.docker.network.bridge.name: tor
  8. - docker_container:
  9. name: tor_proxy
  10. # 1.0.0-tor0.4.1.6-amd64
  11. image: fphammerle/tor-proxy@sha256:ad55d07b1b21c35fa044dc3e1ea6c7d8494f39eb89491ddad35c245340f7cd4b
  12. networks:
  13. - name: tor_proxy_network
  14. purge_networks: yes
  15. ports:
  16. - '127.0.0.1:9050:9050/tcp'
  17. - '127.0.0.1:53:53/udp'
  18. restart_policy: unless-stopped
  19. memory: 128M
  20. - iptables:
  21. action: append
  22. table: filter
  23. chain: OUTPUT
  24. out_interface: '!lo'
  25. jump: REJECT
  26. reject_with: icmp-admin-prohibited