-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
56 lines (52 loc) · 1.82 KB
/
docker-compose.dev.yml
File metadata and controls
56 lines (52 loc) · 1.82 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
54
55
56
#*********************************************************************/
# File : docker-compose.yml */
# */
# Copyright : (c) 2016–2026 nitishhsinghh. All rights reserved. */
# */
# Description : Orchestrates the LOCAL DEVELOPMENT environment. */
# Links the backend/ and frontend/ subdirectories. */
#*********************************************************************/
version: "3.9"
services:
# ======================================================
# BACKEND: .NET 8 API + Native C++ Shared Library
# ======================================================
backend:
container_name: case-api-dev
build:
context: ./backend # Pointing to the backend folder
dockerfile: Dockerfile
image: nitishhsinghhh/case-api:dev
ports:
- "8080:8080"
environment:
- ASPNETCORE_ENVIRONMENT=Development
volumes:
# Mount the backend sub-folder for hot-reloading
- ./backend:/src
networks:
- case-network
# ======================================================
# FRONTEND: React + TypeScript (Vite)
# ======================================================
frontend:
container_name: case-ui-dev
image: node:20
working_dir: /app
volumes:
# Updated from ./string-conversion-ui to ./frontend
- ./frontend:/app
# Anonymous volume to protect container node_modules
- /app/node_modules
ports:
- "5173:5173"
environment:
- VITE_API_URL=http://localhost:8080
command: sh -c "npm install && npm run dev -- --host"
depends_on:
- backend
networks:
- case-network
networks:
case-network:
driver: bridge