Files
freeCodeCamp/docker-compose.yml
Otto Jongerius 5d7ed0a1c1 fix: updates comments to reflect name changes (#17254)
CONTRIBUTING has been updated, but the Compose config file still referenced the old name `server`.
2018-05-29 12:57:46 +05:30

38 lines
815 B
YAML

# 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:
- .:/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"