generated from nyu-software-engineering/generic-mern-stack-project
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
34 lines (33 loc) · 851 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
33
34
version: '3.9'
services:
front-end:
build: ./front-end
ports:
- '3000:3000'
depends_on:
- back-end
volumes:
- ./front-end/src/:/usr/src/app/src
back-end:
build: ./back-end
ports:
- '4000:4000'
depends_on:
- mongo
env_file:
- ./back-end/.env
environment:
- API_KEY_TRAKT=${API_KEY_TRAKT}
- API_KEY_TMDB=${API_KEY_TMDB}
- TOKEN_SECRET=${TOKEN_SECRET}
volumes:
- ./back-end/src/:/usr/src/app/src
mongo:
image: mongo
ports:
- '27017:27017'
env_file:
- ./back-end/.env
environment:
- MONGODB_USERNAME=${MONGODB_USERNAME}
- MONGODB_PASSWORD=${MONGODB_PASSWORD}