A simple web application that displays a black and RGB screen.
- Install Docker and Docker Compose on your server
- Open ports 80 and 443 in your firewall
- Point your domain to your server's IP address
Add the following secrets to your GitHub repository:
DOCKERHUB_USERNAME
: Your Docker Hub usernameDOCKERHUB_TOKEN
: Your Docker Hub access tokenVULTR_HOST
: Your server's IP addressVULTR_USERNAME
: SSH username for your serverVULTR_SSH_KEY
: SSH private key for server accessLETSENCRYPT_EMAIL
: Email for Let's Encrypt notificationsDOMAIN_NAME
: Your domain name (e.g., example.com)
-
Build it:
# Deploy to server docker compose up -d
-
Connect it:
docker exec -it node-lts-container bash
-
Install dependencies:
yarn install
-
Start the development server:
yarn dev
-
Build the application:
docker-compose -f docker-compose.prod.yml build
-
Build Docker image:
docker-compose -f docker-compose.prod.yml up -d
-
Install dependencies:
yarn install
-
Start server:
yarn build yarn preview