Giter Site home page Giter Site logo

docker-tutorial's Introduction

Docker Intro Tutorial

The purpose of this project is to demonstrate how your project can be made into a Docker container. The project consists of an Angular frontend where users can create, view, and delete a person object. This user object is passed to a Spring Boot backend and saved to a MongoDB document. Angular, Spring Boot, and MongoDB are not commonly used together; this was chosen purposefully to demonstrate the versatility of Docker containers.

Getting Started

The first step in learning Docker is to download Docker for Desktop from the official Docker website. This will download the Docker Engine as well as the Desktop UI. You can find it here.

Running the Image

Although you can individually build the images and run them through the command line, I recommend using the docker-compose.yml file as this stack is meant to run together, with the frontend relying on the backend and the backend relying on the database. There are also environmental variables that change depending on whether the app is running in a Docker environment or on a physical system.

Below are the files where the variables change depending on the environment:

Frontend:

Backend:

Usage

The first time you run the docker-compose up command in the root directory, it may take a while for the containers to build as your system caches and builds the containers. After this, subsequent runs will be much quicker.

Once the Docker stack is running, you can access the Angular frontend application by opening your web browser and navigating to http://localhost:8085.

License

This project is licensed under the MIT License - see the LICENSE file for details.

docker-tutorial's People

Contributors

pabloooooo avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.