forked from freeCodeCamp/freeCodeCamp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
37 lines (37 loc) · 826 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
35
36
37
# Docker Compose file for FreeCodeCamp
#
# Bootstrap with:
# docker-compose run --rm freecodecamp npm install
# docker-compose run --rm freecodecamp npm run only-once
#
# Run with:
# docker-compose up
#
version: "3"
services:
freecodecamp:
image: node:8.10
depends_on:
- db
- mailhog
environment:
- MAILHOG_HOST=mailhog
- MONGOHQ_URL=mongodb://db:27017/freecodecamp
volumes:
- ./api-server:/app
working_dir: /app
command:
- npm
- run
- develop
ports:
- "3000:3000"
db:
image: mongo:3.6
ports:
- "27017:27017"
mailhog:
image: mailhog/mailhog
ports:
- "1025:1025"
- "8025:8025"