1
0

Fixed docker-compose

Signed-off-by: James Ketrenos <jketreno@media.ketrenos.com>
This commit is contained in:
James Ketrenos 2022-04-06 14:54:36 +00:00
parent 1050bcee02
commit f8dfe65892
3 changed files with 17 additions and 2 deletions

View File

@ -3,6 +3,10 @@ FROM node:16
# replace this with your application's default port # replace this with your application's default port
EXPOSE 11141 EXPOSE 11141
COPY / /home/node/app/
WORKDIR /home/node/app/server WORKDIR /home/node/app/server
COPY server/package.json /home/node/app/server/package.json
RUN npm install RUN npm install
COPY .env /home/node/app/.env
COPY server/ /home/node/app/server/
ENTRYPOINT [ "npm", "start" ]

View File

@ -1,4 +1,6 @@
# Running Dockerfile # Running Dockerfile
```bash
docker build -t goodtimes . docker build -t goodtimes .
docker run -it --rm --name goodtimes goodtimes docker-compose up -d
```

9
docker-compose.yml Normal file
View File

@ -0,0 +1,9 @@
version: "3.9"
services:
goodtimes:
container_name: goodtimes
image: goodtimes
volumes:
- ./db:/home/node/app/db
ports:
- 11141:11141