when I've build Images from dockerfile it's working as usual.
dockerfile
FROM node:14.17.3
WORKDIR /usr/src/app
COPY ./ ./
RUN npm install
CMD [ "/bin/bash" ]
building from dockerfile
output
but, when I've tried to build image from docker-compose file the ports isn't working
docker-compose file
version: "3.9"
services:
backend:
container_name: backend
build: .
ports:
- "3000:3000"
docker-compose build