docker-compose.yml renamed to sample.docker-compose.yml. docker-compose.yml added to .gitignore so every developer can copy it from sample.docker-compose.yml and make changes according to their local needs. docs(Docker): Updated docs for Docker install. Added Docker specific installation instructions. docs(Docker): Applied changes requested on PR. Extra 8000 port forwarding removed. Mongo db configuration moved inside dokcer-compose config. Cleanup spacing and typos. docs(Docker): Added docker and docker-compose installation links.
32 lines
597 B
YAML
32 lines
597 B
YAML
# Docker Compose sample file for freeCodeCamp
|
|
# Copy this file to docker-compose.yml
|
|
#
|
|
# Bootstrap with:
|
|
# docker-compose run --rm node npm install
|
|
# docker-compose run --rm node npm run only-once
|
|
#
|
|
# Run with:
|
|
# docker-compose up
|
|
#
|
|
version: "3"
|
|
services:
|
|
node:
|
|
image: node:8.9.4
|
|
volumes:
|
|
- .:/app
|
|
working_dir: /app
|
|
depends_on:
|
|
- mongo
|
|
ports:
|
|
- "3000:3000"
|
|
- "3002:3002"
|
|
environment:
|
|
- MONGOHQ_URL=mongodb://mongo:27017/freecodecamp
|
|
command: npm run develop
|
|
|
|
mongo:
|
|
image: mongo:3.0.15
|
|
|
|
mailhog:
|
|
image: mailhog/mailhog
|