-
Notifications
You must be signed in to change notification settings - Fork 101
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (39 loc) · 837 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (39 loc) · 837 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:
frontend:
build: .
ports:
- "5000:5000"
restart: always
command: npm start
volumes:
- ./:/src
- /node_modules/
- /backend/
depends_on:
- backend
- mongodb
environment:
- SKIP_PREFLIGHT_CHECK:true
- PORT:4200
- HOST=0.0.0.0
- REACT_APP_BACKEND_URL=http://192.168.178.50:3000
backend:
build: ./backend/
ports:
- "3000:3000"
volumes:
- ./backend:/src/backend
- /src/backend/node_modules/
command: npm start
restart: always
depends_on:
- mongodb
environment:
MONGO_DB: "mongodb://mongodb/irrigation"
mongodb:
image: ivanmarban/armhf-mongodb
volumes:
- ./mongo-volume:/data/db
ports:
- "27018:27017"