-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (41 loc) · 915 Bytes
/
docker-compose.yml
File metadata and controls
44 lines (41 loc) · 915 Bytes
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
version: '3.8'
services:
app:
build: .
ports:
- "8088:8088"
volumes:
# Mount the pricing data file so changes persist
- ./backend/pricing_data.json:/root/pricing_data.json
environment:
- PORT=8088
restart: unless-stopped
# Development services (optional)
dev-frontend:
build:
context: .
dockerfile: Dockerfile.dev
ports:
- "8088:8088" # React dev server port
volumes:
# Mount frontend source code for development
- ./frontend:/app
- /app/node_modules
environment:
- NODE_ENV=development
depends_on:
- dev-backend
profiles:
- dev
dev-backend:
build:
context: ./backend
dockerfile: ../Dockerfile.backend
ports:
- "8089:8089"
volumes:
- ./backend/pricing_data.json:/app/pricing_data.json
environment:
- PORT=8089
profiles:
- dev