An open API service indexing awesome lists of open source software.

https://github.com/greathayat/deploy-with-docker

This is an example of deploying a nodejs application using docker registry and digital ocean
https://github.com/greathayat/deploy-with-docker

deployment-automation digitalocean docker docker-registry github github-actions nodejs

Last synced: 3 months ago
JSON representation

This is an example of deploying a nodejs application using docker registry and digital ocean

Awesome Lists containing this project

README

          

# Deploy NodeJS application to Digital Ocean using Github actions and Docker hub

### Run the project on local machine

`Without Docker`

- clone the repository
- cd `deploy-with-docker`
- npm install
- npm start

`With Docker` (make sure, you have installed docker on your machine)

- clone the repository
- cd `deploy-with-docker`
- docker build -t .
- docker run -p 5000:5000

*PS*
```
If you want to use the github action workflow, then please add the necessary secrets in your repository settings and you must have

- Digital Ocean Account (you can use alternative service as well)
- Docker container registry source (For this, I have used docker hub registry)
```

*TODO*
I'll add the workflow for
- AWS Container Registry
- Google Cloud Container Registry