Skip to main content
  1. Posts/

Using Gitea as Your Docker Hub

·123 words·1 min·
Technology Docker
Joshua Blais
Joshua Blais

I have a bit of an unconventional way to deploy docker containers - I saw that Docker Hub wanted to charge montly fees when I am simply pushing and pulling images infrequently, so I decided to do this via my Gitea instance.

Create your Dockerfile in your project to properly deploy the app.

docker build -t app-name .

login to Docker and push the image:

docker login
docker tag app-name:latest
docker push

On your server:

docker pull
docker run -d --name app-name -p 42069:42069

From there, you can configure nginx as a reverse proxy to the port you chose to run the app, set up a domain and your ssl certs, and you are off to the races.