-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yml
49 lines (47 loc) · 1.05 KB
/
docker-compose.dev.yml
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
services:
backend:
build:
context: .
dockerfile: Dockerfile.dev.backend
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
ports:
- "5000:5000"
environment:
- APP_NAME='CropDoc'
- SECRET_KEY='secretkey'
- FLASK_APP=manage.py
- FLASK_ENV=development
- LOGGING_LEVEL=DEBUG
- ALLOWED_ORIGINS=http://localhost:3000,http://frontend:3000
volumes:
- ./CropDoc:/CropDoc
networks:
- app-network
command: python manage.py runserver --reload
frontend:
build:
context: .
dockerfile: Dockerfile.dev.frontend
ports:
- "3000:3000"
environment:
- NEXT_PUBLIC_API_URL=http://localhost:5000
volumes:
- ./frontend:/frontend
- /frontend/node_modules
depends_on:
- backend
networks:
- app-network
command: npm run dev
networks:
app-network:
name: cosc320-groupd_app-network
external: true
driver: bridge