Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

a #39

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

a #39

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 30 additions & 45 deletions docker-compose.yml
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,45 +1,30 @@
version: '3.1'

services:
springboot:
image: dockerhandson/spring-boot-mongo:latest
restart: always # This will be ignored if we deploy in docker swarm
environment:
- MONGO_DB_HOSTNAME=mongo
- MONGO_DB_USERNAME=devdb
- MONGO_DB_PASSWORD=devdb123
ports:
- 8080:8080
working_dir: /opt/app
depends_on:
- mongo
networks:
- springappnetwork
deploy: # This will be considered only in docker swarm.
replicas: 2
update_config:
parallelism: 1
delay: 20s
restart_policy:
condition: on-failure
delay: 10s
max_attempts: 5

mongo:
image: mongo
environment:
- MONGO_INITDB_ROOT_USERNAME=devdb
- MONGO_INITDB_ROOT_PASSWORD=devdb123
volumes:
- mongodb:/data/db
restart: always
networks:
- springappnetwork

volumes:
mongodb:
external: true

networks:
springappnetwork:
external: true
version: "3"
services:
springapp:
image: nickregistry/springboot:{{buildnumber}}
ports:
- 8080:8080
environment:
- MONGO_DB_HOSTNAME=mongodb
- MONGO_DB_USERNAME=nikil
- MONGO_DB_PASSWORD=Nikhil@069
networks:
- springoverlay
depends_on:
- mongodb
deploy:
replicas: 3
mongodb:
image: mongo
volumes:
- mongovol:/data/db
environment:
- MONGO_INITDB_ROOT_USERNAME=nikil
- MONGO_INITDB_ROOT_PASSWORD=Nikhil@069
networks:
- springoverlay
volumes:
mongovol:
networks:
springoverlay:

28 changes: 28 additions & 0 deletions docker-composeOLD.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
version: "3"
services:
springapp:
image: nickregistry/springboot:{{buildnumber}}
ports:
- 8080:8080
environment:
- MONGO_DB_HOSTNAME=mongodb
- MONGO_DB_USERNAME=nikil
- MONGO_DB_PASSWORD=Nikhil@069
networks:
- springappbridge
depends_on:
- mongodb
mongodb:
image: mongo
volumes:
- mongovol:/data/db
environment:
- MONGO_INITDB_ROOT_USERNAME=nikil
- MONGO_INITDB_ROOT_PASSWORD=Nikhil@069
networks:
- springappbridge
volumes:
mongovol:
networks:
springappbridge:

45 changes: 45 additions & 0 deletions docker-compose_origi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
version: '3.1'

services:
springboot:
image: dockerhandson/spring-boot-mongo:latest
restart: always # This will be ignored if we deploy in docker swarm
environment:
- MONGO_DB_HOSTNAME=mongo
- MONGO_DB_USERNAME=devdb
- MONGO_DB_PASSWORD=devdb123
ports:
- 8080:8080
working_dir: /opt/app
depends_on:
- mongo
networks:
- springappnetwork
deploy: # This will be considered only in docker swarm.
replicas: 2
update_config:
parallelism: 1
delay: 20s
restart_policy:
condition: on-failure
delay: 10s
max_attempts: 5

mongo:
image: mongo
environment:
- MONGO_INITDB_ROOT_USERNAME=devdb
- MONGO_INITDB_ROOT_PASSWORD=devdb123
volumes:
- mongodb:/data/db
restart: always
networks:
- springappnetwork

volumes:
mongodb:
external: true

networks:
springappnetwork:
external: true
Binary file added src/main/resources/static/img/DSC_0452.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions src/main/resources/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,16 @@ <h2>Saved Users</h2>

<div class="row-md-8">
<div class="col-md-3">
<img th:src="@{/img/mithunlogo.jpg}" alt="logo" height="200">
<img th:src="@{/img/DSC_0452.JPG.jpg}" alt="logo" height="200">
</div>
<div class="col-md-8">
<h4 class="text-center">Mithun Technologies - Bengaluru,
Training, Development Center.</h4>
<h4 class="text-center">Edited by Nikil - Bengaluru,
undergoing training</h4>
<h4 class="text-center">Contact @ +91-8296242028 ,
+91-9980923226</h4>
<h5 class="text-center">
Copyrights 2020 by <a href="http://mithuntechnologies.com/">Mithun
Technologies</a>
Copyrights 2020 by <a href="http://dummyweb.com/">Nikil
Rao</a>
</h5>
</div>
</div>
Expand Down