-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (47 loc) · 1.36 KB
/
docker-compose.yml
File metadata and controls
47 lines (47 loc) · 1.36 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
services:
backend:
container_name: deepseek-backend
build:
context: backend
dockerfile: Dockerfile
restart: on-failure
volumes:
- ./backend:/app
- ./data/uploads:/uploads:rw
links:
- mongo:mongo
ports:
- 5000:5000
environment:
FLASK_RUN_PORT: 5000
FRONTEND_URL: "http://localhost:4000"
UPLOADS_FOLDER: "/uploads"
command: ["flask", "run", "--host=0.0.0.0", "--debug"]
frontend:
container_name: deepseek-frontend
build:
context: frontend
dockerfile: Dockerfile
restart: on-failure
volumes:
- ./frontend:/app:delegated
- ./frontend/package.json:/app/package.json
- ./frontend/package-lock.json:/app/package-lock.json
- notused:/app/node_modules
ports:
- 4000:4000
environment:
PORT: 4000
VITE_API_URL: "http://localhost:5000"
command: ["npm", "run", "dev"]
mongo:
container_name: deepseek-mongo
image: mongo
restart: on-failure
ports:
- 27017:27017
volumes:
- ./scripts/mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js:ro
- ./data/db:/data/db:rw
volumes:
notused: