lab-ansible/roles/apps/templates/compose-files/tor.yml.j2
2024-04-14 19:29:48 +02:00

21 lines
572 B
Django/Jinja

{# 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