-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
48 lines (44 loc) · 956 Bytes
/
Copy pathdocker-compose.dev.yml
File metadata and controls
48 lines (44 loc) · 956 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
services:
mongo:
image: mongo:latest
container_name: journal_mongo_dev
volumes:
- mongo_data:/data/db
ports:
- "27017:27017"
restart: always
dev-server:
build:
context: ./backend
dockerfile: Dockerfile.dev
container_name: journal_backend_dev
env_file:
- ./backend/.env
volumes:
- ./backend/src:/app/src
- ./backend/package.json:/app/package.json
- ./backend/tsconfig.json:/app/tsconfig.json
ports:
- "3000:3000"
depends_on:
- mongo
restart: always
dev-client:
build:
context: ./frontend
dockerfile: Dockerfile.dev
container_name: journal_frontend_dev
env_file:
- ./frontend/.env
volumes:
- ./frontend:/app:cached
- /app/node_modules
ports:
- "5173:5173"
environment:
- CHOKIDAR_USEPOLLING=true
depends_on:
- dev-server
restart: always
volumes:
mongo_data: