-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
32 lines (32 loc) · 802 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
32 lines (32 loc) · 802 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
version: "3.3"
services:
api:
build:
context: .
dockerfile: Dockerfile
container_name: "smart_api"
volumes:
- .:/usr/src/app
# - /usr/src/app/node_modules
depends_on:
- mongo
links:
- mongo:mongo
ports:
- 3000:3000
command: npm start
mongo:
image: mongo:latest
container_name: "mongodb"
environment:
- MONGO_DATA_DIR=/data/db
- MONGO_LOG_DIR=/dev/null
- MONGODB_USER="admin"
- MONGODB_PASS="secret"
volumes:
- ./mongo-data:/data/db
ports:
- 27017:27017
command: mongod --smallfiles --logpath=/dev/null # --quiet
volumes:
mongo-data: