-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (40 loc) · 973 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
41 lines (40 loc) · 973 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
41
services:
malwaremind-server:
build:
context: ./malwaremind-server
container_name: malwaremind_api
environment:
- VIRTUAL_HOST=malwaremind-server.localhost
- RESULT_STORAGE=mongodb
- MONGO_URI=mongodb://database:27017
ports:
- "8000:8000"
volumes:
- ./malwaremind-server:/app
- ./malwaremind-server/uploaded_files:/app/uploaded_files
- ./malwaremind-server/.env:/app/.env
networks:
- local_network
depends_on:
- database
malwaremind-web:
build:
context: ./malwaremind-web
container_name: malwaremind_app
networks:
- local_network
ports:
- "5173:5173"
volumes:
# - ./malwaremind-web:/app
- ./malwaremind-server/images:/app/public # 和backend的volume連動
database:
image: mongo
container_name: mongoDB
ports:
- "27017:27017"
networks:
- local_network
networks:
local_network:
driver: bridge