Browse Source
Pass APP_HIDDEN_SERVICE environment variable to apps (#340)
pre-dotfile-fix
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
5 additions and
0 deletions
-
apps/README.md
-
scripts/app
|
|
@ -154,6 +154,9 @@ services: |
|
|
|
# Tor proxy environment variables |
|
|
|
# $TOR_PROXY_IP - Local IP of Tor proxy |
|
|
|
# $TOR_PROXY_PORT - Port of Tor proxy |
|
|
|
# |
|
|
|
# App specific environment variables |
|
|
|
# $APP_HIDDEN_SERVICE - The address of the Tor hidden service your app will be exposed at |
|
|
|
# If your app has more services, like a database container, you can define those |
|
|
|
# services below: |
|
|
|
# db: |
|
|
|
|
|
@ -76,10 +76,12 @@ compose() { |
|
|
|
local env_file="${UMBREL_ROOT}/.env" |
|
|
|
local app_base_compose_file="${UMBREL_ROOT}/apps/docker-compose.common.yml" |
|
|
|
local app_compose_file="${app_dir}/docker-compose.yml" |
|
|
|
local app_hidden_servive_file="${UMBREL_ROOT}/tor/data/app-${app}/hostname" |
|
|
|
|
|
|
|
export BITCOIN_DATA_DIR="${UMBREL_ROOT}/bitcoin" |
|
|
|
export LND_DATA_DIR="${UMBREL_ROOT}/lnd" |
|
|
|
export APP_DATA_DIR="${app_data_dir}" |
|
|
|
export APP_HIDDEN_SERVICE="$(cat "${app_hidden_servive_file}" || echo "")" |
|
|
|
docker-compose \ |
|
|
|
--env-file "${env_file}" \ |
|
|
|
--project-name "${app}" \ |
|
|
|