mirror of
https://gitea.gofwd.group/Forward_Group/ballistic-builder-spring.git
synced 2026-03-06 22:37:58 -05:00
fixed to docker-compose
This commit is contained in:
@@ -34,12 +34,12 @@ services:
|
|||||||
- battlbuilder-api
|
- battlbuilder-api
|
||||||
networks:
|
networks:
|
||||||
- app-network
|
- app-network
|
||||||
- nginx_nginx
|
# - nginx_nginx
|
||||||
|
|
||||||
|
|
||||||
# --- Docker Network for Inter-Container Communication ---
|
# --- Docker Network for Inter-Container Communication ---
|
||||||
networks:
|
networks:
|
||||||
app-network:
|
app-network:
|
||||||
external: false
|
external: false
|
||||||
nginx_nginx:
|
# nginx_nginx:
|
||||||
external: true
|
# external: true
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ TAG=$(git rev-parse --short HEAD)
|
|||||||
FULL_IMAGE="$REGISTRY/$OWNER/$IMAGE"
|
FULL_IMAGE="$REGISTRY/$OWNER/$IMAGE"
|
||||||
|
|
||||||
echo "Building $FULL_IMAGE:$TAG"
|
echo "Building $FULL_IMAGE:$TAG"
|
||||||
docker build -f docker/backend/Dockerfile -t $FULL_IMAGE:$TAG .
|
docker buildx build -f docker/backend/Dockerfile --platform linux/amd64,linux/arm64 --push -t $FULL_IMAGE:$TAG .
|
||||||
|
|
||||||
echo "Tagging latest"
|
echo "Tagging latest"
|
||||||
docker tag $FULL_IMAGE:$TAG $FULL_IMAGE:latest
|
docker tag $FULL_IMAGE:$TAG $FULL_IMAGE:latest
|
||||||
|
|||||||
@@ -22,11 +22,13 @@ public class CorsConfig {
|
|||||||
|
|
||||||
// Allow Angular development server
|
// Allow Angular development server
|
||||||
config.setAllowedOrigins(Arrays.asList(
|
config.setAllowedOrigins(Arrays.asList(
|
||||||
"http://localhost:3000", // local dev
|
"http://localhost:3000",
|
||||||
|
"http://localhost:3001", // local dev
|
||||||
"https://localhost:3000", // local https dev (if used)
|
"https://localhost:3000", // local https dev (if used)
|
||||||
"https://battl.builders",
|
"https://battl.builders",
|
||||||
"http://bb-web-app:3001",
|
"http://bb-web-app:3001",
|
||||||
"http://bb-web-app:3000"
|
"http://bb-web-app:3000",
|
||||||
|
"http://bb-web-app"
|
||||||
)); // production frontend));
|
)); // production frontend));
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -80,10 +80,13 @@ public class SecurityConfig {
|
|||||||
CorsConfiguration cfg = new CorsConfiguration();
|
CorsConfiguration cfg = new CorsConfiguration();
|
||||||
cfg.setAllowedOrigins(Arrays.asList(
|
cfg.setAllowedOrigins(Arrays.asList(
|
||||||
"http://localhost:3000", // local dev
|
"http://localhost:3000", // local dev
|
||||||
|
"http://localhost:3001",
|
||||||
"https://localhost:3000", // local https dev (if used)
|
"https://localhost:3000", // local https dev (if used)
|
||||||
"https://battl.builders",
|
"https://battl.builders",
|
||||||
"http://bb-web-app:3001",
|
"http://bb-web-app:3001",
|
||||||
"http://bb-web-app:3000")); // production frontend));
|
"http://bb-web-app:3000",
|
||||||
|
"http://bb-web-app"
|
||||||
|
)); // production frontend));
|
||||||
cfg.setAllowedMethods(List.of("GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"));
|
cfg.setAllowedMethods(List.of("GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"));
|
||||||
cfg.setAllowedHeaders(List.of("Authorization", "Content-Type"));
|
cfg.setAllowedHeaders(List.of("Authorization", "Content-Type"));
|
||||||
cfg.setExposedHeaders(List.of("Authorization"));
|
cfg.setExposedHeaders(List.of("Authorization"));
|
||||||
|
|||||||
Reference in New Issue
Block a user