-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
78 lines (74 loc) · 2.24 KB
/
docker-compose.dev.yml
File metadata and controls
78 lines (74 loc) · 2.24 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# Development docker-compose with hot reloading and development tools
services:
# MongoDB - Primary database
mongodb:
image: mongo:6
container_name: integration-gateway-mongodb-dev
restart: unless-stopped
ports:
- "27017:27017"
environment:
MONGO_INITDB_DATABASE: integration_gateway
volumes:
- mongodb_data_dev:/data/db
networks:
- integration-gateway-dev-network
# Backend API with nodemon for hot reloading
backend:
build:
context: ./backend
dockerfile: Dockerfile.dev
container_name: integration-gateway-backend-dev
restart: unless-stopped
ports:
- "3545:3545"
- "9229:9229" # Node.js debugger port
environment:
NODE_ENV: development
DEBUG: "app:*"
PORT: 3545
MONGODB_URI: ${MONGODB_URI:-mongodb://mongodb:27017/integration_gateway}
MONGODB_DATABASE: ${MONGODB_DATABASE:-integration_gateway}
API_KEY: ${API_KEY:-mdcs_dev_key_1f4a}
JWT_SECRET: ${JWT_SECRET:-change_me_dev_jwt_secret}
API_RATE_LIMIT_ENABLED: ${API_RATE_LIMIT_ENABLED:-true}
API_RATE_LIMIT_MAX_REQUESTS: ${API_RATE_LIMIT_MAX_REQUESTS:-100}
API_RATE_LIMIT_WINDOW_SECONDS: ${API_RATE_LIMIT_WINDOW_SECONDS:-60}
INBOUND_MINIMAL_LOGGING: ${INBOUND_MINIMAL_LOGGING:-false}
volumes:
# Mount source code for hot reloading
- ./backend:/app
- /app/node_modules
networks:
- integration-gateway-dev-network
depends_on:
- mongodb
command: npm run dev
# Frontend with Vite dev server for hot reloading
frontend:
build:
context: ./frontend
dockerfile: Dockerfile.dev
container_name: integration-gateway-frontend-dev
restart: unless-stopped
ports:
- "5175:5175" # Vite dev server port
environment:
NODE_ENV: development
VITE_API_BASE_URL: http://localhost:3545/api/v1
VITE_API_KEY: ${VITE_API_KEY:-mdcs_dev_key_1f4a}
volumes:
# Mount source code for hot reloading
- ./frontend:/app
- /app/node_modules
networks:
- integration-gateway-dev-network
depends_on:
- backend
command: npm run dev -- --host 0.0.0.0
volumes:
mongodb_data_dev:
driver: local
networks:
integration-gateway-dev-network:
driver: bridge