Sign inSign up

danielpm1982/profile-mng

By danielpm1982

Updated almost 2 years ago

This is a Profile Manager Web MVC application developed with Spring Boot 3

Image
0

150

danielpm1982/profile-mng repository overview

profile-mng

This is a Docker Image with a sample Profile Management REST Web App developed with Spring Boot 3

© 2024 Daniel Pinheiro Maia All Rights Reserved
(see Copyright© License at the end of this text).

Sources available at: https://github.com/danielpm1982/springboot3-profile-mng

How to run:

v.1.0.0-dev: this is a standalone spring boot image, with no additional dependencies other than those inside it, including an in-memory and in-built relational DBMS: H2. No data remains persisted after the application or its container is exited / stopped. On each container start all data is reset to its default.
For running Profile-Mng App v.1.0.0-dev:

  1. download the raw YML file available at https://github.com/danielpm1982/springboot3-profile-mng/blob/master/docker-compose-dev-from-hub.yml to a local directory at your local machine (e.g. to a folder called "temp" at your "home"). Using this YML script avoids you have to deal with all environment variables settings manually as when using Docker alone - everything Docker needs to run this app version container is already set inside this YML script;
  2. from inside the local directory above, call:
    sudo docker compose -f docker-compose-dev-from-hub.yml up
    (you may start it at the detached mode by using "-d" at the end)
  3. then test it through localhost:8080/ path, at your browser.


v.1.0.0-prod: this is a spring boot image that depends on an external DBMS to connect: MySQL. Data remains persisted after the application or its container is exited / stopped.
For running Profile-Mng App v.1.0.0-prod:

  1. download the raw YML file available at https://github.com/danielpm1982/springboot3-profile-mng/blob/master/docker-compose-prod-from-hub.yml to a local directory at your local machine (e.g. to a folder called "temp" at your "home"). This script first starts the DB at a separate container, from a default MySQL Docker image, and only then it creates and starts another Docker container with the Web app, that can then connect to the already started DB. Both containers (DB and Web) communicate through one single Docker user-defined Bridge Network;
  2. download the raw init SQL file available at https://github.com/danielpm1982/springboot3-profile-mng/blob/master/docker-entrypoint-initdb.d/docker-init.sql to a folder called docker-entrypoint-initdb.d , and move it to the same local directory above, where you downloaded the YML file to;
  3. from inside that local directory, call:
    sudo docker compose -f docker-compose-prod-from-hub.yml up
    (you may start it at the detached mode by using "-d" at the end)
  4. then test it through localhost:8080/ path, at your browser.


v.1.0.0-dev-aws: this is a similar image as that of v.1.0.0-dev tag, but built from a slightly smaller source code - which actually didn't reduce the size of this built tag. For using this tag, just copy the same YML script (as with v.1.0.0-dev) to a local directory at your AWS instance and call it from there by using docker compose (or docker-compose) command. A deployed container, from this image tag, running at an AWS EC2 instance of mine, is already available at http://profile-mng.danielpm1982.com:8080 . In the case of remote deploy (cloud), the IPv4 of the EC2 instance should be used instead, or a domain/subdomain that points out to this IP... rather than the localhost.

© 2024 Daniel Pinheiro Maia All Rights Reserved
This Docker repository's images are exclusively for academic and individual learning purposes, and are NOT AVAILABLE FOR COMMERCIAL USE, nor have warranty of any type. You're authorized to run / pull them, at your own risk, for individual learning purposes only, but you're NOT ALLOWED to distribute, sublicense and/or sell copies of the whole or of parts of it without explicit and written consent from its owner / author. If you wish to use any of this repository content in any way other than what is expressed above, or publish it anyway or anywhere, please contact this repository owner / author using the contact info below.

Owner and Author of this Docker Hub Repository
Daniel Pinheiro Maia
danielpm1982.com
[email protected]
linkedin.com/in/danielpm1982
Brazil
.

Tag summary

Content type

Image

Digest

sha256:a4ded9457

Size

324.2 MB

Last updated

almost 2 years ago

docker pull danielpm1982/profile-mng:v.1.0.0-dev-aws