-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (50 loc) · 1.1 KB
/
docker-compose.yml
File metadata and controls
54 lines (50 loc) · 1.1 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
services:
mongo:
image: mongo:5.0
container_name: friendfinder_mongo
ports:
- "27017:27017"
volumes:
- mongo-data:/data/db
backend:
build:
context: ./backend
dockerfile: ../docker/Dockerfile.backend
container_name: friendfinder_backend
ports:
- "5000:5000"
environment:
MONGO_URI: mongodb://mongo:27017/friendfinder
volumes:
- ./backend:/app
- backend_node_modules:/app/node_modules
depends_on:
- mongo
frontend:
build:
context: ./frontend
dockerfile: ../docker/Dockerfile.frontend
container_name: friendfinder_frontend
ports:
- "5173:5173"
environment:
- VITE_API_URL=http://localhost:5000
volumes:
- ./frontend:/app
- frontend_node_modules:/app/node_modules
depends_on:
- backend
nginx:
build:
context: .
dockerfile: docker/Dockerfile.nginx
container_name: friendfinder_nginx
ports:
- "25580:25580"
depends_on:
- backend
- frontend
volumes:
mongo-data:
backend_node_modules:
frontend_node_modules: