Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save abhinavkorpal/af6c982dd693bf6b8e1749ebc24fa533 to your computer and use it in GitHub Desktop.
Save abhinavkorpal/af6c982dd693bf6b8e1749ebc24fa533 to your computer and use it in GitHub Desktop.
Docker Compose
docker-compose build ## build ~ build or rebuild services define in docker-compose.yml
docker-compose build mongo ## mongo ~ only build and rebuild mongo service
docker-compose up ## up ~ create and start the container
docker-compose upm --no-deps node ## no-deps ~ do not create services that node depends on, node ~ rebuild not images and stop, destroy and recreate only node
docker-compose down ## take all the container down(stop and remove)
docker-compose down --rmi all --volumes ## remove all volumes and images
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment