-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
51 lines (48 loc) · 922 Bytes
/
docker-compose.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
# Run docker-compose build
# Run docker-compose up
version: '3.5'
networks:
default:
name: web_dev
services:
server:
tty: true
restart: always
build: ./server
ports:
- "5000:5000"
volumes:
- ./server:/usr/src/app
environment:
- ENV=development
- PORT=5000
- DB=mongodb://mongodb:27017/eyeCloudDB
depends_on:
- mongodb
links:
- mongodb
client:
tty: true
restart: always
build: ./client
volumes:
- ./client/src:/usr/src/app/src
ports:
- "4200:4200"
depends_on:
- server
links:
- server
# env_file:
# - .env
mongodb:
image: mongo:4.2
container_name: "mongodb"
environment:
- MONGO_DATA_DIR=/usr/data/db
- MONGO_LOG_DIR=/dev/null
volumes:
- ./data/db:/usr/data/db
ports:
- 27017:27017
command: mongod --logpath=/dev/null # --quiet