diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3f3e797..3340ff6 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -60,7 +60,8 @@ jobs: --cpu=0.1 \ --memory=256Mi \ --service-account=github-actions@poke-like-api.iam.gserviceaccount.com \ - --set-env-vars="ConnectionStrings__PokeLikeDbContext=Host=/cloudsql/$PROJECT_ID:$REGION:postgres-instance;Database=PokeLikeDb;Username=postgres;Password=welovepokemon" \ + --set-env-vars="ASPNETCORE_URLS=http://+:8080,ConnectionStrings__PokeLikeDbContext=Host=/cloudsql/poke-like-api:europe-west2:postgres-instance;Database=PokeLikeDb;Username=postgres;Password=welovepokemon" \ --add-cloudsql-instances=$PROJECT_ID:$REGION:postgres-instance \ --allow-unauthenticated \ - --vpc-connector=pokelike-connector + --vpc-connector=pokelike-connector \s + --port=8080 diff --git a/Dockerfile b/Dockerfile index 5f036fe..3c68e85 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,4 +24,6 @@ ENV ASPNETCORE_URLS=http://+:8080 ENTRYPOINT ["dotnet", "PRO05_BACK_Gaj_Khalos_Max.dll"] +EXPOSE 8080 +