https://github.com/soreana/docker-webhook
Docker Webhook to pull images from Docker hub
https://github.com/soreana/docker-webhook
Last synced: 3 months ago
JSON representation
Docker Webhook to pull images from Docker hub
- Host: GitHub
- URL: https://github.com/soreana/docker-webhook
- Owner: soreana
- License: apache-2.0
- Created: 2024-03-24T01:08:10.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-24T01:28:02.000Z (about 1 year ago)
- Last Synced: 2025-01-25T23:16:26.290Z (4 months ago)
- Language: JavaScript
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# docker-webhook
Adjust the configurations in docker-compose.yml and server file.
Install dependencies and run the application
```
$ npm i
$ node server.js
```### Using PM2 to Keep Node Application Running
1. Install PM2 with
```
$ npm install pm2 -g
```
2. Start the Application with PM2
```
$ pm2 start server.js --name docker-webhook
```
3. Ensure PM2 Starts on Boot
```
$ pm2 startup
```
4. Save PM2 Process List
```
$ pm2 save
```### Additional PM2 Commands
1. List Running Applications
```
$ pm2 list
```
3. Monitor Applications
```
$ pm2 monit
```
5. View Logs
```
$ pm2 logs
```
7. Stop an Application
```
$ pm2 stop webhook-listener
```
9. Restart an Application
```
$ pm2 restart webhook-listener
```