- Clone the repository
- Go to the root directory of angular-docker-sample-app
- Execute the following commands
# install dependencies
npm install
# start app
ng serve
- Access the app at http://localhost:4200
Before deploying the Portal with Docker, ensure that you have the following installed:
- Go to the root directory of angular-docker-sample-app
- Create
.env
file using values in .env.example - Start Docker
- Run the following command
docker-compose -f docker-compose.yml up
- Access the app at http://localhost:5000. If you specified a different port in your
docker-compose.yml
file (via.env
file), adjust the port number accordingly. - To stop the running containers, use the following command
docker-compose down
- Customize the
docker-compose.yml
file if you need to adjust port mappings or other configurations. - If your application relies on additional environment variables, you can set them in the
.env
file in the same directory as yourdocker-compose.yml
file.