From f2765e2e7b81d0a5cb2095ab1add6f4810257b67 Mon Sep 17 00:00:00 2001 From: XShine555 Date: Thu, 24 Sep 2026 15:06:25 +0200 Subject: [PATCH] Call the API by container name from the web player In prod every project shares infra-net, where the `api` service name can resolve to another project's container as well. --- deploy/compose.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/deploy/compose.yml b/deploy/compose.yml index cddfe5b..38df9fb 100644 --- a/deploy/compose.yml +++ b/deploy/compose.yml @@ -398,7 +398,10 @@ services: AUTH_POST_LOGOUT_URI: "${PUBLIC_WEB_URL}/" AUTH_ALLOW_INSECURE_HTTP: ${AUTH_ALLOW_INSECURE_HTTP} SESSION_SECRET: ${SESSION_SECRET} - API_BASE_URL: http://api:5111 + # The container name, not the `api` service name: in prod every project + # shares infra-net, where a generic name can resolve to another + # project's container. + API_BASE_URL: http://musify-api:5111 # Presigned PUTs are signed for the public S3 host; the container sends # them straight to SeaweedFS instead of going back out through the edge. S3_UPLOAD_ENDPOINT: ${S3_INTERNAL_URL}