Skip to content

Latest commit

 

History

History
62 lines (46 loc) · 961 Bytes

DEPLOY.md

File metadata and controls

62 lines (46 loc) · 961 Bytes

Deploying Linklie

Clone the repository

git clone https://github.com/kevinlee-06/linklie.git
cd linklie

Deploying with Docker

Build the Docker image

docker build -t kevinlee-06/linklie .

Run the Docker container

docker run -d \
  --name server \
  -p 14400:8080 \
  -v data:/usr/src/app/db \
  kevinlee-06/linklie:latest

Example docker-compose.yaml file

services:
  server:
    image: ghcr.io/kevinlee-06/linklie:latest
    ports:
      - PORT:8080
    volumes:
      - data:/usr/src/app/db    
volumes:
  data:
    driver: local

Use the command to run the latest version of Linklie

docker compose up -d --pull always

Note

Don't forget to change the port in the docker-compose.yaml file.

Deploying with Node.js

Run the server with Node.js

npm install
node server.js

Note

Don't forget to change the PORT in the server.js file.