-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.dev.yml
61 lines (57 loc) · 1.14 KB
/
docker-compose.dev.yml
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
55
56
57
58
59
60
61
version: '3.8'
services:
mongodb:
image: mongo
container_name: mongodb
restart: always
ports:
- '27017:27017'
volumes:
- C:/databases/mongodb/organic-farms:/data/db
backend:
build:
dockerfile: Dockerfile.dev
context: ./backend
container_name: backend
restart: always
ports:
- '4000:4000'
env_file:
- ./backend/.env.development
volumes:
- ./backend:/backend
- /backend/node_modules
depends_on:
- mongodb
admin:
build:
dockerfile: Dockerfile.dev
context: ./admin
container_name: admin
ports:
- '3001:3001'
env_file:
- ./admin/.env.development
volumes:
- ./admin:/admin
- /admin/node_modules
environment:
- CHOKIDAR_USEPOLLING=true
depends_on:
- backend
client:
build:
dockerfile: Dockerfile.dev
context: ./client
container_name: client
ports:
- '3000:3000'
env_file:
- ./client/.env.development
volumes:
- ./client:/client
- /client/node_modules
environment:
- CHOKIDAR_USEPOLLING=true
depends_on:
- backend