This repository has been archived on 2024-02-10. You can view files and clone it, but cannot push or open issues or pull requests.
cpx-ansible/roles/docker_services/tasks/services/tor.yml

33 lines
1.2 KiB
YAML
Raw Normal View History

2023-04-20 21:34:25 +00:00
# vim: ft=yaml.ansible
---
- name: Deploy Tor Docker container
community.docker.docker_container:
name: tor
state: "{{ 'absent' if stop is defined and stop else 'started' }}"
restart: "{{ stop is undefined or not stop }}"
image: goldy/tor-hidden-service:{{ services.tor.version }}
restart_policy: always
env:
2023-04-22 16:50:32 +00:00
# Required by SimpleXMQ (we're not hosting anonymous services anyway)
TOR_EXTRA_OPTIONS: |
HiddenServiceNonAnonymousMode 1
HiddenServiceSingleHopMode 1
2023-04-20 21:34:25 +00:00
LINGVA_TOR_SERVICE_HOSTS: 80:lingva:3000
LINGVA_TOR_SERVICE_VERSION: '3'
LINGVA_TOR_SERVICE_KEY: "{{ secrets.tor.lingva_key }}"
SAMSAPTIDEV_TOR_SERVICE_HOSTS: 80:samsapti:80
SAMSAPTIDEV_TOR_SERVICE_VERSION: '3'
SAMSAPTIDEV_TOR_SERVICE_KEY: "{{ secrets.tor.samsapti_dev_key }}"
2023-04-20 21:34:25 +00:00
SEARXNG_TOR_SERVICE_HOSTS: 80:searxng:8080
SEARXNG_TOR_SERVICE_VERSION: '3'
SEARXNG_TOR_SERVICE_KEY: "{{ secrets.tor.searxng_key }}"
2023-04-22 16:50:32 +00:00
SMPSERVER_TOR_SERVICE_HOSTS: 5223:smp-server:5223
SMPSERVER_TOR_SERVICE_VERSION: '3'
SMPSERVER_TOR_SERVICE_KEY: "{{ secrets.tor.smp_server_key }}"
2023-04-20 21:34:25 +00:00
networks:
- name: tor