Add ports to docker compose

This commit is contained in:
MotorTruck1221 2022-12-02 12:54:05 -07:00
parent 242c18e682
commit 7ee142a7ed
2 changed files with 3 additions and 7 deletions

View file

@ -1,13 +1,7 @@
FROM node:18 FROM node:alpine
WORKDIR /usr/src/app WORKDIR /usr/src/app
COPY . . COPY . .
RUN npm install RUN npm install
RUN npm ci RUN npm ci
EXPOSE 3000 EXPOSE 3000
CMD ["npm", "start"] CMD ["npm", "start"]

View file

@ -5,3 +5,5 @@ services:
build: . build: .
container_name: nebula container_name: nebula
restart: unless-stopped restart: unless-stopped
ports:
- 8080:3000