Files
ballistic-builder-spring/docker/docker-compose.yaml

46 lines
1.6 KiB
YAML
Raw Normal View History

services:
# --- 1. Spring API Service (Backend) ---
battlbuilder-api:
container_name: battlbuilder-api
hostname: battlbuilder-api
2026-01-20 17:23:45 -05:00
image: gitea.gofwd.group/forward_group/ballistic-builder-spring/spring-api:latest
ports:
- "8080:8080" # Map host port 8080 to container port 8080
environment:
# These environment variables link the API to the database service defined below
2026-01-20 16:55:45 -05:00
- SPRING_DATASOURCE_URL=jdbc:postgresql://ash.gofwd.group:5433/ss_builder
2025-12-03 11:34:08 -05:00
- SPRING_DATASOURCE_USERNAME=dba
- SPRING_DATASOURCE_PASSWORD=!@#Qwerty
- SPRING_PROFILES_ACTIVE=openai
2026-01-20 22:41:51 -05:00
- AI_ENRICHMENT_PROVIDER=openai
networks:
- app-network
# --- 2. Next.js App Service (Frontend) ---
bb-web-app:
hostname: bb-web-app
container_name: bb-web-app
2026-01-20 17:23:45 -05:00
image: gitea.gofwd.group/sean/shadow-gunbuilder-ai-proto/webui:latest
ports:
- "3001:3000" # Map host port 3000 to container port 3000
environment:
# This variable is crucial: Next.js needs the URL for the Spring API
# Use the Docker internal service name 'spring-api' and its port 8080
- NEXT_PUBLIC_API_BASE_URL=https://battl.builders
- API_INTERNAL_BASE_URL=http://battlbuilder-api:8080 # optional, for server-side-only calls
# For local testing, you might need the host IP for Next.js to call back
# - NEXT_PUBLIC_API_URL_LOCAL=http://localhost:8080
depends_on:
- battlbuilder-api
networks:
- app-network
- nginx_nginx
# --- Docker Network for Inter-Container Communication ---
networks:
app-network:
external: false
nginx_nginx:
external: true