lab-ansible/roles/apps/templates/compose-files/tor.yml.j2

21 lines
572 B
Plaintext
Raw Normal View History

2024-02-10 19:03:04 +00:00
{# code: language=ansible-jinja #}
# THIS FILE IS MANAGED BY ANSIBLE
services:
app:
image: goldy/tor-hidden-service:{{ apps_vars.tor.version }}
restart: always
environment:
{% for app in apps_torified|sort %}
{{ app | upper }}_TOR_SERVICE_HOSTS: 80:{{ app }}:{{ apps_vars[app].port }}
{{ app | upper }}_TOR_SERVICE_VERSION: '3'
{{ app | upper }}_TOR_SERVICE_KEY: |
{{ tor_keys[app] | indent(width=8) }}
{% endfor %}
networks:
- {{ apps_tor_docker_network }}
networks:
{{ apps_tor_docker_network }}:
external: true