Add docker-compose.yml file

This might be useful for small development environments,
continuous integration and/or continuous delivery.
This commit is contained in:
Alex Coto
2016-12-26 13:03:21 -05:00
parent 89b56f3078
commit 37a3870e70

28
docker-compose.yml Executable file
View File

@ -0,0 +1,28 @@
# Docker Compose file for FreeCodeCamp
#
# Bootstrap with:
# docker-compose run --rm server npm install
# docker-compose run --rm server npm run only-once
#
# Run with:
# docker-compose up
#
version: "2"
services:
db:
image: mongo:3.2.6
server:
image: node:6.2.1
depends_on:
- db
environment:
- MONGOHQ_URL=mongodb://db:27017/freecodecamp
volumes:
- .:/fcc
working_dir: /fcc
command:
- npm
- start
ports:
- "3000:3000" # Change port if needed