A demo using multiple Docker containers. Tests run from the selenium directory.
To start the web server and database containers:
docker-compose up -d
Visit http://localhost/.
Visit http://localhost:8080/ to access Mongo Express.
- Visit http://localhost:8080/db/solarsystemdb/planets to see the
planets
collection in thesolarsystemdb
database - Click on
New Document
. - Copy and paste the contents of pluto.json and then click
Save
.
To stop all the containers:
docker-compose stop
To clear the data from the database, stop the containers and then delete the
mongodb/data
directory.
To cleanup the containers when you are done:
docker-compose rm -f