Closed harlev closed 5 years ago
@harlev having the Dockerfile in the main folder might break the current deployment. Can we have them in a separate folder with a separate Readme?
moved files to docker
directory and created a separate readme file.
Tested it all works in the new location
Added the following
Dockerfile
to build an image for the Jsonbox application.docker-compose.yml
to run both Jsonbox, and its Mongo DB dependency.wait-for-it.sh
from here recommended by the Docker Documentation as a way to wait for a service to be ready. In our case we need it to wait for Mongo DB to be responsive.README.md
with instructions for usage.In short, just call
docker-compose up
if you have all the docker prerequisites. The server will be available on http://localhost:3000 If needed, you could change the port in thedocker-compose.yml
file