diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..64afbe6 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,19 @@ +version: '2' +services: + keycloak: + image: jboss/keycloak + container_name: keycloak + environment: + KEYCLOAK_USER: admin + KEYCLOAK_PASSWORD: changeit + ports: + - 8080:8080 + + steamidp: + image: neothor/steam-openid-connect-provider + build: ./src + container_name: steamidp + ports: + - 80:80 + links: + - keycloak \ No newline at end of file diff --git a/Dockerfile b/src/Dockerfile similarity index 75% rename from Dockerfile rename to src/Dockerfile index 3388020..3842055 100644 --- a/Dockerfile +++ b/src/Dockerfile @@ -1,19 +1,19 @@ -FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS build +FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build WORKDIR /src # Copy the project file to create layer with packages -COPY src/SteamOpenIdConnectProvider.csproj . +COPY SteamOpenIdConnectProvider.csproj . RUN dotnet restore ./SteamOpenIdConnectProvider.csproj # Copy the rest of the source -COPY src/* . +COPY . . RUN dotnet build ./SteamOpenIdConnectProvider.csproj -c Release -o /app FROM build AS publish RUN dotnet publish ./SteamOpenIdConnectProvider.csproj -c Release -o /app -FROM mcr.microsoft.com/dotnet/core/aspnet:3.1 AS base +FROM mcr.microsoft.com/dotnet/aspnet:5.0 WORKDIR /app COPY --from=publish /app . EXPOSE 80 diff --git a/src/appsettings.json b/src/appsettings.json index 5582ca6..2b96863 100644 --- a/src/appsettings.json +++ b/src/appsettings.json @@ -4,14 +4,17 @@ "Default": "Warning" } }, + "AllowedHosts": "*", "OpenID": { "ClientID": "proxy", "ClientSecret": "secret", "RedirectUri": "http://localhost:8080/auth/realms/master/broker/steam/endpoint", "PostLogoutRedirectUri": "" }, - "AllowedHosts": "*", "Hosting": { "PathBase": "" + }, + "Steam": { + "ApplicationKey": "secret" } } \ No newline at end of file