-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
41 lines (41 loc) · 860 Bytes
/
docker-compose.dev.yml
File metadata and controls
41 lines (41 loc) · 860 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
version: "3"
services:
mongodb:
image: mongo
container_name: mongodb
restart: always
ports:
- "27017:27017"
volumes:
- /home/lalit/Documents/Builds/databases/mongodb/coderspaces-data:/data/db
backend:
build:
dockerfile: Dockerfile.dev
context: ./backend/
container_name: backend
restart: always
ports:
- "5500:5500"
env_file:
- ./backend/.env.dev
volumes:
- ./backend:/backend
- /backend/node_modules
depends_on:
- mongodb
frontend:
build:
dockerfile: Dockerfile.dev
context: ./
container_name: frontend
ports:
- "3000:3000"
env_file:
- ./frontend/.env.dev
volumes:
- ./frontend:/frontend
- /frontend/node_modules
environment:
- CHOKIDAR_USEPOLLING=true
depends_on:
- backend