Skip to content

Commit

Permalink
dockerfile expose 8800 and 8400
Browse files Browse the repository at this point in the history
  • Loading branch information
Revsgaard committed May 21, 2024
1 parent 38352dd commit 23fc0fe
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 27 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci_main_docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: ci_main_docker
on:
push:
branches:
- "main"
- "1.4.x-development-base-arm"
jobs:
build:
name: Build Docker image
Expand Down
4 changes: 2 additions & 2 deletions Docker/docker-compose.development-http.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ services:
- Settings:UseHttp=true
- Settings:FoxIDsEndpoint=http://localhost:8800
ports:
- 8800:80
- 8800:8800
foxids-control:
environment:
- ASPNETCORE_ENVIRONMENT=Development
Expand All @@ -18,7 +18,7 @@ services:
- Settings:FoxIDsBackendEndpoint=http://foxids
- Settings:FoxIDsControlEndpoint=http://localhost:8801
ports:
- 8801:80
- 8801:8800
# mongodb: # optionally expose MongoDB on port 27017
# ports:
# - 27017:27017
Expand Down
14 changes: 7 additions & 7 deletions Docker/docker-compose.development-https.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ services:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=https://+;http://+
- https_port=44330
- Settings:FoxIDsEndpoint=https://localhost:44330
- Settings:FoxIDsEndpoint=https://localhost:8400
ports:
- 8800:80
- 44330:443
- 8800:8800
- 8400:8400
volumes:
- ${APPDATA}/Microsoft/UserSecrets:/home/app/.microsoft/usersecrets:ro
- ${APPDATA}/ASP.NET/Https:/home/app/.aspnet/https:ro
Expand All @@ -18,12 +18,12 @@ services:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=https://+;http://+
- https_port=44331
- Settings:FoxIDsEndpoint=https://localhost:44330
- Settings:FoxIDsEndpoint=https://localhost:8400
- Settings:FoxIDsBackendEndpoint=https://foxids
- Settings:FoxIDsControlEndpoint=https://localhost:44331
- Settings:FoxIDsControlEndpoint=https://localhost:8401
ports:
- 8801:80
- 44331:443
- 8801:8800
- 8401:8400
volumes:
- ${APPDATA}/Microsoft/UserSecrets:/home/app/.microsoft/usersecrets:ro
- ${APPDATA}/ASP.NET/Https:/home/app/.aspnet/https:ro
Expand Down
14 changes: 7 additions & 7 deletions Kubernetes/k8s-foxids-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spec:
- name: foxids
image: foxids/foxids:latest
ports:
- containerPort: 8000
- containerPort: 8800
env:
- name: "ASPNETCORE_URLS"
value: "http://+"
Expand Down Expand Up @@ -81,7 +81,7 @@ spec:
- name: foxids-control
image: foxids/foxids-control:latest
ports:
- containerPort: 8000
- containerPort: 8800
env:
- name: "ASPNETCORE_URLS"
value: "http://+"
Expand All @@ -90,7 +90,7 @@ spec:
- name: "Settings__FoxIDsEndpoint"
value: "https://id.itfoxtec.com" # change to your domain - https://id.my-domain.com
- name: "Settings__FoxIDsBackendEndpoint"
value: "http://foxids:8000"
value: "http://foxids:8810"
- name: "Settings__FoxIDsControlEndpoint"
value: "https://control.itfoxtec.com" # change to your domain - https://control.my-domain.com
- name: "Settings__MasterSeedEnabled"
Expand Down Expand Up @@ -138,8 +138,8 @@ spec:
ports:
- name: http
protocol: TCP
port: 8000
targetPort: 8000
port: 8810
targetPort: 8800
---
apiVersion: v1
kind: Service
Expand All @@ -153,7 +153,7 @@ spec:
- name: http
protocol: TCP
port: 8800
targetPort: 8000
targetPort: 8800
---
apiVersion: v1
kind: Service
Expand All @@ -167,4 +167,4 @@ spec:
- name: http
protocol: TCP
port: 8801
targetPort: 8000
targetPort: 8800
2 changes: 0 additions & 2 deletions azuredeploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,6 @@
},
"properties": {
"siteConfig": {
"linuxFxVersion": "DOCKER|index.docker.io/foxids/foxids:latest",
"ftpsState": "Disabled",
"alwaysOn": false,
"autoSwapSlotName": "production"
Expand All @@ -396,7 +395,6 @@
},
"properties": {
"siteConfig": {
"linuxFxVersion": "DOCKER|index.docker.io/foxids/foxids-control:latest",
"ftpsState": "Disabled",
"alwaysOn": false,
"autoSwapSlotName": "production"
Expand Down
6 changes: 2 additions & 4 deletions src/FoxIDs.Control/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
USER app
WORKDIR /app
EXPOSE 80
EXPOSE 443
EXPOSE 8800
EXPOSE 8400

FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
ARG BUILD_CONFIGURATION=Release
#ARG BUILD_CONFIGURATION=Debug
WORKDIR /src
COPY ["src/FoxIDs.Control/FoxIDs.Control.csproj", "FoxIDs.Control/"]
COPY ["src/FoxIDs.ControlClient/FoxIDs.ControlClient.csproj", "FoxIDs.ControlClient/"]
Expand All @@ -20,7 +19,6 @@ RUN dotnet build "FoxIDs.Control.csproj" -c $BUILD_CONFIGURATION -o /app/build

FROM build AS publish
ARG BUILD_CONFIGURATION=Release
#ARG BUILD_CONFIGURATION=Debug
RUN dotnet publish "FoxIDs.Control.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false

FROM base AS final
Expand Down
6 changes: 2 additions & 4 deletions src/FoxIDs/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
USER app
WORKDIR /app
EXPOSE 80
EXPOSE 443
EXPOSE 8800
EXPOSE 8400

FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
ARG BUILD_CONFIGURATION=Release
#ARG BUILD_CONFIGURATION=Debug
WORKDIR /src
COPY ["src/FoxIDs/FoxIDs.csproj", "FoxIDs/"]
COPY ["src/FoxIDs.Shared/FoxIDs.Shared.csproj", "FoxIDs.Shared/"]
Expand All @@ -18,7 +17,6 @@ RUN dotnet build "FoxIDs.csproj" -c $BUILD_CONFIGURATION -o /app/build

FROM build AS publish
ARG BUILD_CONFIGURATION=Release
#ARG BUILD_CONFIGURATION=Debug
RUN dotnet publish "FoxIDs.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false

FROM base AS final
Expand Down

0 comments on commit 23fc0fe

Please sign in to comment.