Skip to content

hlushko/nodejs-github-emails-docker

Repository files navigation

Docker containers (Node.js, Mongo)

Usage

  • Add the following lines to your .bashrc file:
export UID
export GID=$(id -g)
  • Create Docker pre-existing network:
docker network create nghed-network

Find out more here about pre-existing networks.

  • Copy .env.dist to .env file and fill your local config

  • Run containers:

There two ways to run these components:

  • by docker-compose (prod) docker-compose -f docker-compose.yml up
  • by docker-sync (dev with code synchronization) docker-sync-stack start

Tip Some containers map ports to a host port somewhere within an ephemeral port range in order to prevent the port collisions with already open ports, use command docker port to get the list port mappings. Find out more here about port bindings.

Enjoy!

About

Docker config for nodejs-github-emails project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published