-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (49 loc) · 1.85 KB
/
docker-compose.yml
File metadata and controls
53 lines (49 loc) · 1.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# -----------------------------------------------------------------------------
# Microsoft Azure Container Registry / Docker Compose Template
# Project: Hardware-Aware Case Conversion Engine
# Component: Full-Stack Local Development Orchestration
# Documentation: https://github.com/nitishhsinghhh/case-conversion-api
# -----------------------------------------------------------------------------
# VERSION HISTORY
# Version | Date | Author | Description
# --------|------------|--------------|----------------------------------------
# 1.0.0 | 2026-04-21 | Nitish Singh | Initial Release. Monorepo-aligned setup.
# -----------------------------------------------------------------------------
# ARCHITECTURAL STRATEGY:
# * Monorepo Integration: Bridges ./backend and ./frontend root directories.
# * Hot-Reloading: Utilizes host-volume mounting for rapid React/Vite development.
# * Isolation: Employs anonymous volumes to preserve container-side node_modules.
# -----------------------------------------------------------------------------
version: "3.9"
services:
# --- BACKEND: .NET 8 API + Native C++ Engine ---
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: case-api
ports:
- "8080:8080"
restart: unless-stopped
networks:
- case-network
# --- FRONTEND: React Development Server (Vite) ---
frontend:
image: node:20
container_name: case-ui
working_dir: /app
volumes:
- ./frontend:/app
- /app/node_modules # Anonymous volume to protect container dependencies
ports:
- "5173:5173"
# Vite requires --host flag for container port forwarding
command: sh -c "npm install && npm run dev -- --host"
depends_on:
- backend
networks:
- case-network
# --- NETWORK INFRASTRUCTURE ---
networks:
case-network:
driver: bridge