Skip to content

Commit

Permalink
feat: add migrations to git
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardo committed Sep 7, 2023
1 parent 6ca37e9 commit 73351b9
Show file tree
Hide file tree
Showing 14 changed files with 3,136 additions and 75 deletions.
File renamed without changes.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,6 @@ FodyWeavers.xsd
*.sln.iml

volumes
Migrations

node_modules
.DS_Store
Expand Down
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
// "dotnet-test-explorer.testProjectPath": "src/Domain.Tests/Domain.Tests.csproj",
"dotnet-test-explorer.testProjectPath": "src/Application.Tests/Application.Tests.csproj",
"dotnet.defaultSolution": "src/CopetSystem.API.sln",
"dotnet.defaultSolution": "src/GPIC.BackEnd.sln",
"azureFunctions.deploySubpath": "src/Infrastructure/WebFunctions/bin/Release/net7.0/publish",
"azureFunctions.projectLanguage": "C#",
"azureFunctions.projectRuntime": "~4",
Expand Down
52 changes: 0 additions & 52 deletions src/Docker/WebAPI/docker-compose.override.yml

This file was deleted.

82 changes: 82 additions & 0 deletions src/Docker/WebAPI/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,90 @@
version: '3.4'

services:

# PostgreSQL Database
postgres:
container_name: postgres_gpic
image: postgres:latest
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

# Seq - Servidor de Logs
seq:
container_name: seq_gpic
image: datalust/seq:latest
ports:
- "5341:80"
environment:
- ACCEPT_EULA=Y
- SEQ_API_KEY=vxM2YLukOTgnraaYczDh
networks:
- gpic-network

# Web API
webapi:
container_name: webapi_gpic
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=https://+:443;http://+:80
image: ${DOCKER_REGISTRY-}webapi
build:
context: ../../
dockerfile: Infrastructure/WebAPI/Dockerfile
ports:
- 5051:443
- 5050:80
volumes:
- ~/.aspnet/https:/root/.aspnet/https:ro
- ~/.microsoft/usersecrets:/root/.microsoft/usersecrets:ro
depends_on:
- postgres
- seq
networks:
- gpic-network

# Web Functions
webfunctions:
container_name: webfunctions_gpic
image: ${DOCKER_REGISTRY-}webfunctions
build:
context: ../../
dockerfile: Infrastructure/WebFunctions/Dockerfile
ports:
- "7071:80"
volumes:
- ~/.microsoft/usersecrets:/root/.microsoft/usersecrets:ro
environment:
- AzureWebJobsStorage=UseDevelopmentStorage=true
- AzureFunctionsJobHost__Logging__Console__IsEnabled=true
depends_on:
- azurite
- postgres
- seq
networks:
- gpic-network

# Azurite - Storage Emulator (Blob, Queue, Table)
azurite:
container_name: azurite_gpic
image: mcr.microsoft.com/azure-storage/azurite
ports:
- "10000:10000"
- "10001:10001"
- "10002:10002"
environment:
- AZURITE_ACCOUNTS=devstoreaccount1:devstoreaccount1Key
networks:
- gpic-network

networks:
gpic-network:
driver: bridge
10 changes: 0 additions & 10 deletions src/Docker/WebAPI/init-seq.sh

This file was deleted.

Loading

0 comments on commit 73351b9

Please sign in to comment.