34 lines
1 KiB
YAML
34 lines
1 KiB
YAML
# vim: ft=yaml.ansible
|
|
---
|
|
- name: Create Tor volume directory
|
|
ansible.builtin.file:
|
|
path: "{{ services.tor.volume }}"
|
|
owner: '104'
|
|
group: '107'
|
|
mode: u=rwx,go=
|
|
state: directory
|
|
|
|
- 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:
|
|
LINGVA_TOR_SERVICE_HOSTS: 80:lingva:3000
|
|
LINGVA_TOR_SERVICE_VERSION: '3'
|
|
LINGVA_TOR_SERVICE_KEY: "{{ secrets.tor.lingva_key }}"
|
|
|
|
SAMSAPTI_TOR_SERVICE_HOSTS: 80:samsapti:80
|
|
SAMSAPTI_TOR_SERVICE_VERSION: '3'
|
|
SAMSAPTI_TOR_SERVICE_KEY: "{{ secrets.tor.samsapti_key }}"
|
|
|
|
SEARXNG_TOR_SERVICE_HOSTS: 80:searxng:8080
|
|
SEARXNG_TOR_SERVICE_VERSION: '3'
|
|
SEARXNG_TOR_SERVICE_KEY: "{{ secrets.tor.searxng_key }}"
|
|
networks:
|
|
- name: tor
|
|
volumes:
|
|
- "{{ services.tor.volume }}:/var/lib/tor/hidden_service:rw"
|