-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.development.yml
More file actions
60 lines (57 loc) · 1.68 KB
/
docker-compose.development.yml
File metadata and controls
60 lines (57 loc) · 1.68 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
services:
glowpa:
image: docker-registry.wur.nl/glowpa/glowpa-r/glowpa-main:0.2.1
container_name: glowpa-container
ports:
- "8080:8080"
volumes:
- ./data:/app/data # Mount entire data directory for case study access
networks:
- app-network
tty: true
stdin_open: true
backend:
build:
context: ./webapp
dockerfile: Dockerfile.dev
target: backend
container_name: backend-container
ports:
- "5000:5000" # Flask backend
volumes:
- ./webapp/backend:/app/backend # Mount backend source for hot reload
- ./data:/app/data # Mount entire data directory for case study access
- /var/run/docker.sock:/var/run/docker.sock # Mount Docker socket for container access
env_file:
- .env
environment:
- FLASK_ENV=development
- FLASK_DEBUG=1
- WATERPATH_DATA_API_URL=${WATERPATH_DATA_API_URL:-https://dev.waterpath.venthic.com/api}
networks:
- app-network
depends_on:
- glowpa
frontend:
build:
context: ./webapp
dockerfile: Dockerfile.dev
target: frontend
container_name: frontend-container
ports:
- "3000:3000" # React frontend
volumes:
- ./webapp/frontend:/app/frontend # Mount frontend source for hot reload
- /app/frontend/node_modules # Anonymous volume for node_modules
environment:
- CHOKIDAR_USEPOLLING=true # Enable polling for file changes on Windows
- REACT_APP_API_URL=http://localhost:5000
networks:
- app-network
depends_on:
- backend
stdin_open: true
tty: true
networks:
app-network:
driver: bridge