-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
62 lines (56 loc) · 1.08 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
55
56
57
58
59
60
61
62
version: "3.8"
services:
appdelante:
build:
context: .
target: dev
profiles:
- dev
ports:
- 3000:3000
- 9229:9229
environment:
- SECRET_KEY
- SERVER_PORT=3000
- NODE_ENV=dev
- MONGO_DB_CONNECTION=mongodb://mongo:27017/appdelante
volumes:
- ./:/app
- /app/node_modules
command: npm run debug
mongo:
profiles:
- dev
image: mongo:4.2.8
ports:
- 27017:27017
volumes:
- mongodb:/data/db
- mongodb_config:/data/configdb
appdelante-test:
build:
context: .
target: test
profiles:
- test
ports:
- 3000:3000
environment:
- SECRET_KEY=testingsecret
- SERVER_PORT=3000
- NODE_ENV=test
- MONGO_DB_CONNECTION=mongodb://mongo-test:27017/appdelante-test
mongo-test:
profiles:
- test
image: mongo:4.2.8
ports:
- 27017:27017
volumes:
- mongodb-test:/data/db
- mongodb_config-test:/data/configdb
volumes:
mongodb :
mongodb_config:
mongodb-test:
mongodb_config-test: