-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
46 lines (45 loc) · 1.04 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
version: '2.1'
services:
teamhub:
image: teamhub
container_name: teamhub_nodejs
build: .
volumes:
- .:/usr/src/app
environment:
NODE_ENV: development
TEAMHUB_ENV: development
ports:
- 3000:3000
links:
- database
depends_on:
- database
tty: true
database:
image: mongo
container_name: teamhub_mongodb
volumes:
- ./docker/mongodb/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
ports:
- 27017:27017
test:
image: teamhub
container_name: teamhub_testing
ports:
- 3000:3000
build: .
volumes:
- .:/usr/src/app
links:
- test-db
depends_on:
- test-db
environment:
NODE_ENV: testing
TEAMHUB_ENV: testing
test-db:
image: mongo
container_name: teamhub_test_db
ports:
- 27017:27017