-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
45 lines (42 loc) · 1.02 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
45 lines (42 loc) · 1.02 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
version: '3.8'
services:
# Backend API service (Development mode with hot reload)
backend:
build:
context: ./server
dockerfile: Dockerfile
container_name: horoscope-api-dev
ports:
- "5000:5000"
environment:
- FLASK_ENV=development
- FLASK_DEBUG=1
- PYTHONUNBUFFERED=1
volumes:
- ./server/horoscope.py:/app/horoscope.py
- ./server/api.py:/app/api.py
- ./cache:/app/cache
networks:
- app-network
command: python api.py
restart: unless-stopped
# Frontend React service (Development mode)
frontend:
image: node:20-alpine
container_name: horoscope-frontend-dev
working_dir: /app
ports:
- "5173:5173"
environment:
- NODE_ENV=development
- VITE_API_URL=http://localhost:5000
volumes:
- ./vite-project:/app
- /app/node_modules
networks:
- app-network
command: sh -c "npm install && npm run dev -- --host"
restart: unless-stopped
networks:
app-network:
driver: bridge