23 lines
588 B
Django/Jinja
23 lines
588 B
Django/Jinja
{# code: language=ansible-jinja #}
|
|
# THIS FILE IS MANAGED BY ANSIBLE
|
|
|
|
version: "3.8"
|
|
|
|
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
|