docker: expose non-80 port inside containers

This commit is contained in:
Abdullah Atta
2024-08-09 11:20:07 +05:00
parent 21a9b4c203
commit cd06a31d1b
4 changed files with 6 additions and 12 deletions

View File

@@ -1,7 +1,5 @@
FROM mcr.microsoft.com/dotnet/runtime-deps:8.0-alpine AS base
WORKDIR /app
EXPOSE 80
EXPOSE 443
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0-alpine AS build
ARG TARGETARCH

View File

@@ -1,7 +1,5 @@
FROM mcr.microsoft.com/dotnet/runtime-deps:8.0-alpine AS base
WORKDIR /app
EXPOSE 80
EXPOSE 443
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0-alpine AS build
ARG TARGETARCH

View File

@@ -1,7 +1,5 @@
FROM mcr.microsoft.com/dotnet/runtime-deps:8.0-alpine AS base
WORKDIR /app
EXPOSE 80
EXPOSE 443
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0-alpine AS build
ARG TARGETARCH

View File

@@ -1,9 +1,9 @@
x-server-discovery: &server-discovery
NOTESNOOK_SERVER_PORT: 80
NOTESNOOK_SERVER_PORT: 5264
NOTESNOOK_SERVER_HOST: notesnook-server
IDENTITY_SERVER_PORT: 80
IDENTITY_SERVER_PORT: 8264
IDENTITY_SERVER_HOST: identity-server
SSE_SERVER_PORT: 80
SSE_SERVER_PORT: 7264
SSE_SERVER_HOST: sse-server
SELF_HOSTED: 1
@@ -111,7 +111,7 @@ services:
identity-server:
image: streetwriters/identity:latest
ports:
- 8264:80
- 8264:8264
networks:
- notesnook
env_file: *env-files
@@ -131,7 +131,7 @@ services:
notesnook-server:
image: streetwriters/notesnook-sync:latest
ports:
- 5264:80
- 5264:5264
networks:
- notesnook
env_file: *env-files
@@ -160,7 +160,7 @@ services:
sse-server:
image: streetwriters/sse:latest
ports:
- 7264:80
- 7264:7264
env_file: *env-files
depends_on:
- identity-server