Categories
docker

Hosting a Docker Image in Github Packages

Create a github actions workflow within your repository. I will assume you have already created a developer token and added to the secrets section of the repository. Mine is named MY_GITHUB_TOKEN in the actions file. I have a simple Dockerfile that installs Nginx. You can use your own if you wish. Once you push your […]

Categories
javascript nodejs

Create a private NPM package in Github Packages

We will be deploying a private npm package to Github packages. This is like the public npm registry, but in our case it will be hosted on Github and be private. Lets get started Create a new repository in Github and make it private. We will then clone it down to our local machine. Mine […]

Categories
devops mongodb

Restrict outside access to MongoDB installed on an EC2 Instance with Security Groups

Note: I will be assuming you have MongoDB running on an EC2 instance. First off we need to allow outside access to the MongoDB instance. Below is what I had to update in mongod.conf file. We have to comment out bindIp and add bindIpAll set to true. At this point you should be able to […]