git clone https://github.com/kevinlee-06/linklie.git
cd linklie
docker build -t kevinlee-06/linklie .
docker run -d \
--name server \
-p 14400:8080 \
-v data:/usr/src/app/db \
kevinlee-06/linklie:latest
services:
server:
image: ghcr.io/kevinlee-06/linklie:latest
ports:
- PORT:8080
volumes:
- data:/usr/src/app/db
volumes:
data:
driver: local
docker compose up -d --pull always
Note
Don't forget to change the port in the docker-compose.yaml
file.
npm install
node server.js
Note
Don't forget to change the PORT
in the server.js
file.