forked from galkin/js-fwdays-2018
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
32 lines (32 loc) · 886 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
version: '3'
services:
fwday_app:
build: .
container_name: "fwday_app"
depends_on:
- fwday_db
links:
- fwday_db
environment:
- NODE_ENV=development
- LOG_LEVEL=trace
- HTTP_PORT=8080
- SHUTDOWN_TIMEOUT=1000
- CACHE_DEFAULT_VALUE_LENGTH=12
- CACHE_MAX_AMOUNT=3
- CACHE_TTL=30
- CACHE_COLLECTION_NAME=cache
- MONGODB_CONNECTION_STRING=mongodb://fwday_db:27017/db-cache
ports:
- 8080:8080
fwday_db:
image: mongo:latest
container_name: "fwday_db"
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 # --quiet