diff --git a/docker-compose.yml b/docker-compose.yml index 7a541c15037..010fb135726 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -331,7 +331,7 @@ services: ports: - "50290:8080" environment: - OPENVERSE_NGINX_UPSTREAM_URL: ${HOST_NETWORK_ADDRESS}:8443 + OPENVERSE_NGINX_UPSTREAM_URL: ${HOST_NETWORK_ADDRESS:-172.17.0.1}:8443 OPENVERSE_NGINX_PLAUSIBLE_EVENT_URL: http://plausible:8000/api/event # Set to Docker network resolver to be able to resolve the `plausible` container. # This would be the default but Nginx requires it to be explicitly set when diff --git a/justfile b/justfile index cf1da5c2a2e..826666043bb 100644 --- a/justfile +++ b/justfile @@ -10,8 +10,6 @@ PROD_ENV := env_var_or_default("PROD_ENV", "") IS_CI := env_var_or_default("CI", "") DC_USER := env_var_or_default("DC_USER", "opener") -export HOST_NETWORK_ADDRESS := if os() == "macos" { "host.docker.internal" } else { "172.17.0.1" } - # Show all available recipes, also recurses inside nested justfiles @_default: just --list --unsorted @@ -128,6 +126,8 @@ export INGESTION_PY_VERSION := `just ingestion_server/py-version` export FRONTEND_NODE_VERSION := `just frontend/node-version` export FRONTEND_PNPM_VERSION := `just frontend/pnpm-version` +export HOST_NETWORK_ADDRESS := if os() == "macos" { "host.docker.internal" } else { "172.17.0.1" } + versions: #!/usr/bin/env bash cat <