-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🚀 Adição de container - Remoção de alguns arquivos do getting-started de DockerFile - Trocando application.properties pra application.yaml - Adição de dependência do quarkus pra trabalhar com yaml - Refatoração da URI do MONGODB_URL - Adição de scripts para subir/parar container no mongo
- Loading branch information
Eduardo
committed
Sep 11, 2021
1 parent
12180b8
commit 1b181e5
Showing
14 changed files
with
63 additions
and
211 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
docker-compose -f src/main/docker/docker-compose.yaml up -d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
version: '3' | ||
|
||
services: | ||
product-ms-database: | ||
image: mongo | ||
command: mongod --port 27015 | ||
restart: always | ||
container_name: product-ms-database | ||
environment: | ||
MONGO_INITDB_ROOT_USERNAME: admin | ||
MONGO_INITDB_ROOT_PASSWORD: admin123 | ||
MONGO_INITDB_DATABASE: product-ms | ||
ports: | ||
- 127.0.0.1:27015:27015 | ||
expose: | ||
- 27015 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package org.edudev; | ||
|
||
import io.quarkus.runtime.annotations.QuarkusMain; | ||
import io.quarkus.runtime.Quarkus; | ||
|
||
@QuarkusMain | ||
public class Main { | ||
|
||
public static void main(String ... args) { | ||
Quarkus.run(args); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
MONGODB_URL: mongodb://admin:admin123@localhost:27015/product-ms | ||
quarkus: | ||
swagger-ui: | ||
path: doc | ||
theme: Newspaper | ||
http: | ||
port: 9999 | ||
test-port: 8888 | ||
mp: | ||
openapi: | ||
extensions: | ||
smallrye: | ||
info: | ||
title: Product MS | ||
version: 1.0.0 | ||
description: API desenvolvida para vaga de emprego na Compasso UOL, onde foram implementadas arquiteturas para tratativa e manipulação geral dos registros, visando diminuir o código boiderplate, e consequentemente, melhorar a manuntenção e escalabilidade do software. | ||
contact: | ||
email: [email protected] | ||
name: Eduardo J. | ||
url: https://duduxs.github.io/portfolio/ | ||
license: | ||
name: MIT License | ||
url: https://github.com/Duduxs/product-ms-quarkus/blob/master/LICENSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
docker container stop product-ms-database | ||
echo "Database stopped" | ||
docker container rm product-ms-database | ||
echo "Database removed" |