great-monkey-48685
11/15/2021, 12:36 PMdocker run -p 80:3000 container-id
How do I add the container port 3000 it to the fargate task definition, currently I’m doing:
const listener = new awsx.lb.ApplicationListener("pulumi-ecs-primary", {
external: true,
port: 80
});
const taskDefinition = new awsx.ecs.FargateTaskDefinition("sample", {
containers: {
sampleapp: {
image: awsx.ecs.Image.fromDockerBuild(sample, {
context: "./app/",
dockerfile: "./app/Dockerfile",
}),
portMappings: [listener]
},
},
});
broad-gold-44713
11/15/2021, 2:28 PMconst listener =
new awsx.lb.NetworkTargetGroup("custom", { port: 8080 })
.createListener("custom", { port: 80 });
great-monkey-48685
11/16/2021, 3:54 AM