-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (45 loc) · 966 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
49 lines (45 loc) · 966 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
42
43
44
45
46
47
48
49
services:
mongo:
image: mongo:7
container_name: linkbin-mongo
restart: unless-stopped
ports:
- "27018:27017"
volumes:
- mongo-data:/data/db
redis:
image: redis:7-alpine
container_name: linkbin-redis
restart: unless-stopped
ports:
- "6379:6379"
backend:
build:
context: ./backend
container_name: linkbin-backend
restart: unless-stopped
env_file:
- ./backend/.env
environment:
MONGO_URI: mongodb://mongo:27017/linkbin
REDIS_URL: redis://redis:6379
BASE_URL: http://localhost:5000
CLIENT_URL: http://localhost:5173
ports:
- "5000:5000"
depends_on:
- mongo
- redis
frontend:
build:
context: ./frontend
container_name: linkbin-frontend
restart: unless-stopped
environment:
VITE_API_URL: http://localhost:5000
ports:
- "5173:5173"
depends_on:
- backend
volumes:
mongo-data: