Skip to content

Commit

Permalink
fix port mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardobl committed Nov 1, 2024
1 parent c027fc7 commit a983581
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/DockerManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,6 @@ export default class DockerManager {

const customUnExposedPorts = (labels["hypergate.UNEXPOSE"] ?? "").split(",");
// @ts-ignore
console.log(container.data.Ports);
// @ts-ignore
const ports = [
// @ts-ignore
...container.data.Ports.filter((p: any) => {
Expand Down Expand Up @@ -194,7 +192,7 @@ export default class DockerManager {
}
}
// @ts-ignore
const service = container.data.Ports.map((ps: any) => {
const service = ports.map((ps: any) => {
let servicePort = ps.PrivatePort;
let serviceProto = ps.Type;
let serviceHost = network?.Aliases?.[0] ?? name;
Expand Down

0 comments on commit a983581

Please sign in to comment.