forked from arshhimself/NutriScan
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (37 loc) · 798 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (37 loc) · 798 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
version: '3.8'
services:
nextjs:
build:
context: ./client
ports:
- "3000:3000" # For frontend
- "7500:7500" # For backend
volumes:
- ./client:/app
stdin_open: true
tty: true
restart: always
networks:
- nutri-scan
command: ["sh", "-c", "npm run server & npm run dev"]
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:7500"]
interval: 10s
timeout: 5s
retries: 5
django:
build:
context: ./server
container_name: django_server
command: ["gunicorn", "server.wsgi:application", "--bind", "0.0.0.0:8000"]
volumes:
- ./server:/app
ports:
- "8000:8000"
networks:
- nutri-scan
depends_on:
- nextjs
networks:
nutri-scan:
driver: bridge