File tree Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Original file line number Diff line number Diff line change 1
1
services :
2
2
server :
3
- build : ./ backend
3
+ image : harshpatil20/uber-server:latest # Use pre-built backend image
4
4
ports :
5
5
- " 3000:3000"
6
- volumes :
7
- - ./backend:/app
8
- - /app/node_modules # Prevent overwriting node_modules
9
6
env_file :
10
7
- ./backend/.env # Load environment variables
11
8
environment :
12
- - DB_CONNECT=mongodb://mongo:27017/uberdb # Override DB_CONNECT without changing code
9
+ - DB_CONNECT=mongodb://mongo:27017/uberdb
13
10
depends_on :
14
11
- mongo
15
12
networks :
16
13
- app-network
17
14
18
15
client :
19
- build : ./ frontend
16
+ image : harshpatil20/uber-client:latest # Use pre-built frontend image
20
17
ports :
21
- - " 5173:5173" # Updated to 5137
22
- volumes :
23
- - ./frontend:/app
24
- - /app/node_modules
18
+ - " 5173:5173"
25
19
environment :
26
- - VITE_BASE_URL=http://localhost :3000
20
+ - VITE_BASE_URL=http://server :3000 # Use service name instead of localhost
27
21
depends_on :
28
22
- server
29
23
networks :
You can’t perform that action at this time.
0 commit comments