-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
54 lines (54 loc) · 1.2 KB
/
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
52
53
54
version: '2'
services:
mongodb:
image: mongo:latest
container_name: "mongodb"
environment:
- MONGO_DATA_DIR=/data/db
- MONGO_LOG_DIR=/dev/null
volumes:
- ./data/db:/data/db
ports:
- 27017:27017
command: mongod --smallfiles --logpath=/dev/null --bind_ip_all # --quiet
mongo-seed:
build: ./mongo-seed
environment:
- WAIT_HOSTS=mongodb:27017
volumes:
- ./mongo-seed:/mongo-seed
links:
- mongodb
depends_on:
- mongodb
server:
build:
context: ./server/
# command: /usr/app/node_modules/.bin/nodemon ./index.js
environment:
- WAIT_HOSTS=mongodb:27017
- NODE_ENV=development
- CHOKIDAR_USEPOLLING=true
volumes:
- ./server/:/usr/app
- /usr/app/node_modules
links:
- mongodb
depends_on:
- mongodb
ports:
- "8081:3000"
# env_file: ./server/.env # TODO - uncomment this to auto-load your .env file!
client:
environment:
- NOVE_ENV=production
build:
context: ./client/
command: npm run start
volumes:
- ./client/:/usr/app
- /usr/app/node_modules
depends_on:
- server
ports:
- "8080:3000"