-
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.
refactor: modify projects to add docker support
- Loading branch information
eduardo
committed
Sep 7, 2023
1 parent
4b9be7c
commit 6199e9e
Showing
17 changed files
with
122 additions
and
126 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,3 @@ | ||
# Infrastructure.WebAPI | ||
# GPIC WebAPI / WebFunctions | ||
|
||
Restful API created in .NET 7.0.0 to support SPA. | ||
|
||
## Execução com Dotnet | ||
|
||
Comandos para execução do projeto .NET utilizando CLI: | ||
|
||
```bash | ||
cd Infrastructure.WebAPI | ||
dotnet build | ||
dotnet run | ||
``` | ||
|
||
## Execucação com Docker | ||
|
||
Comandos para execução do projeto .NET utilizando Docker: | ||
|
||
```bash | ||
docker build . -t copet-system-api:dev | ||
docker run --name copet-system-api -p 8080:80 -d copet-system-api:dev | ||
``` | ||
Restful API created in .NET 7 to centralize the business rules of the GPIC system (Gerenciador de Projetos de Iniciação Científica). |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
version: '3.4' | ||
|
||
services: | ||
# PostgreSQL Database | ||
postgres: | ||
image: postgres:latest | ||
container_name: postgres | ||
environment: | ||
POSTGRES_PASSWORD: Copet@123 | ||
POSTGRES_USER: copet-admin | ||
POSTGRES_DB: COPET_DB | ||
ports: | ||
- 15432:5432 | ||
volumes: | ||
- ./volumes/postgresql:/var/lib/postgresql/data | ||
networks: | ||
- gpic-network | ||
|
||
# PostgreAdmin UI | ||
pgadmin: | ||
image: dpage/pgadmin4:latest | ||
container_name: pgadmin | ||
environment: | ||
PGADMIN_DEFAULT_EMAIL: eduardo-paes@outlook.com | ||
PGADMIN_DEFAULT_PASSWORD: CopetSystem!2022 | ||
ports: | ||
- 16543:80 | ||
depends_on: | ||
- postgres | ||
networks: | ||
- gpic-network | ||
|
||
networks: | ||
gpic-network: | ||
driver: bridge |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
|
||
# Gere uma API Key aleatória | ||
api_key=$(openssl rand -hex 32) | ||
|
||
# Defina a API Key como uma variável de ambiente | ||
export SEQ_API_KEY=$api_key | ||
|
||
# Inicie o Seq Logger | ||
exec "$@" |
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,20 @@ | ||
# Email Service | ||
SMTP_EMAIL_USERNAME=EMAIL | ||
SMTP_EMAIL_PASSWORD=SENHA | ||
|
||
# JWT Secrets | ||
JWT_SECRET_KEY=8y/B?E(G+KbPeShVmYq3t6w9z$C&F)J@McQfTjWnZr4u7x!A%D*G-KaPdRgUkXp2 | ||
JWT_EXPIRE_IN=60 | ||
JWT_ISSUER=gpic-webapi | ||
JWT_AUDIENCE=webapi.gpic.server | ||
|
||
# SEQ Logger Service | ||
SEQ_API_KEY=vxM2YLukOTgnraaYczDh | ||
SEQ_URL=http://seq_gpic:5341 | ||
|
||
# Connection String do banco de dados | ||
POSTGRES_CONNECTION_STRING="Server=postgres_gpic;Database=COPET_DB;Port=5432;User Id=copet-admin;Password=Copet@123;" | ||
|
||
# Executa a migração do banco de dados | ||
# deixe como True apenas na inicilização | ||
EXECUTE_MIGRATION=False |
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
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 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