From fd127ff67db768301d28b9f073b12cf96873c7b2 Mon Sep 17 00:00:00 2001 From: Botis Date: Tue, 26 Nov 2024 12:44:38 +0100 Subject: [PATCH] fix: Set default API_ROUTE_PREFIX --- compose.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/compose.yml b/compose.yml index bdff437ba..d13d0d5e2 100644 --- a/compose.yml +++ b/compose.yml @@ -70,7 +70,7 @@ services: - APP_ENV=${APP_ENV:-prod} - APP_SECRET=${APP_SECRET:-!ChangeMe!} - SERVER_NAME=${SERVER_NAME:-gally.localhost}, php:80 - - API_ROUTE_PREFIX=${API_ROUTE_PREFIX:-} + - API_ROUTE_PREFIX=${API_ROUTE_PREFIX:-api} - TRUSTED_PROXIES=${TRUSTED_PROXIES:-127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16} - TRUSTED_HOSTS=${TRUSTED_HOSTS:-^${SERVER_NAME:-|gally.localhost}|localhost|php$$} - CORS_ALLOW_ORIGIN=^https?://${SERVER_NAME:-gally.localhost}$ @@ -87,14 +87,14 @@ services: front_src: ./front args: - NEXT_PUBLIC_ENTRYPOINT=${SERVER_NAME:-gally.localhost} - - NEXT_PUBLIC_API_URL=https://${SERVER_NAME:-gally.localhost}/${API_ROUTE_PREFIX:-} - - NEXT_PUBLIC_API_ROUTE_PREFIX=${API_ROUTE_PREFIX:-} - - REACT_APP_API_URL=https://${SERVER_NAME:-gally.localhost}/${API_ROUTE_PREFIX:-} + - NEXT_PUBLIC_API_URL=https://${SERVER_NAME:-gally.localhost}/${API_ROUTE_PREFIX:-api} + - NEXT_PUBLIC_API_ROUTE_PREFIX=${API_ROUTE_PREFIX:-api} + - REACT_APP_API_URL=https://${SERVER_NAME:-gally.localhost}/${API_ROUTE_PREFIX:-api} environment: - NEXT_PUBLIC_ENTRYPOINT=${SERVER_NAME:-gally.localhost} - - NEXT_PUBLIC_API_URL=https://${SERVER_NAME:-gally.localhost}/${API_ROUTE_PREFIX:-} - - NEXT_PUBLIC_API_ROUTE_PREFIX=${API_ROUTE_PREFIX:-} - - REACT_APP_API_URL=https://${SERVER_NAME:-gally.localhost}/${API_ROUTE_PREFIX:-} + - NEXT_PUBLIC_API_URL=https://${SERVER_NAME:-gally.localhost}/${API_ROUTE_PREFIX:-api} + - NEXT_PUBLIC_API_ROUTE_PREFIX=${API_ROUTE_PREFIX:-api} + - REACT_APP_API_URL=https://${SERVER_NAME:-gally.localhost}/${API_ROUTE_PREFIX:-api} healthcheck: test: test $$(curl --connect-timeout 2 -s -o /dev/null -w ''%{http_code}'' http://localhost:3000) -eq 200 interval: 10s