Skip to content

Instantly share code, notes, and snippets.

@danielwetan
danielwetan / nodejs-cicd-github-actions.md
Last active September 6, 2025 06:17
Deploy Node.js to VPS using Github Actions

Deploy Node.js to VPS using Github Actions

Steps to deploy Node.js to VPS using PM2 and Github Actions

1. Clone repo to VPS folder

@kizzx2
kizzx2 / docker-compose.yml
Last active August 13, 2025 09:37
Restart a docker container periodically with docker-compose
version: '3'
services:
app:
image: nginx:alpine
ports: ["80:80"]
restart: unless-stopped
restarter:
image: docker:cli
volumes: ["/var/run/docker.sock:/var/run/docker.sock"]