ansible-playbook.yml 454 B

123456789101112131415
  1. - hosts: [some-host]
  2. become: true
  3. tasks:
  4. - docker_volume:
  5. name: onion_service_key
  6. - docker_container:
  7. name: onion_service
  8. # 0.2-tor0.3.3.7-amd64
  9. image: fphammerle/onion-service@sha256:51b5ee67fea1587421fd3dd982cc58f7554b68fe051d316d6d120e560675d2b8
  10. env:
  11. VIRTUAL_PORT: 80
  12. TARGET: 1.2.3.4:8080
  13. volumes: ['onion_service_key:/onion-service']
  14. memory: 128M
  15. restart_policy: unless-stopped