Select Page
How to Install Gitea Self-hosted Git Service using Docker on Ubuntu 18.04

How to Install Gitea Self-hosted Git Service using Docker on Ubuntu 18.04

Gitea is a fork of Gogs, the easy to use self-hosted Git service. It is similar to GitHub, Bitbucket, and Gitlab. Gitea is lightweight code hosting solution written in Go, can run on minimal hardware requirements. It is a cross-platform application, can run anywhere Go can be compiled such as Windows, Linux, MacOS, ARM etc.

In this tutorial, I will show you step-by-step how to install and configure the lightweight Git service using Gitea. We will deploy the Gitea server using Docker and will be using the PostgreSQL database and Traefik Reverse proxy. For this guide, we will be using the latest Ubuntu 18.04 Server.


  • Ubuntu 18.04
  • Root privileges

What we will do?

  1. Install Docker-CE
  2. Install Docker Compose
  3. Deploy Gitea as Container using Docker
  4. Gitea Post-Installation
  5. Create First Repository
  6. Testing First Commit

Step 1 – Install Docker-CE

The first step we will do for this guide is to install the Docker community edition to the Ubuntu 18.04 server. We will install the Docker CE package from the official Docker repository.

Add the Docker and Docker repository by running commands below.

curl -fsSL | sudo apt-key add -
sudo add-apt-repository
   "deb [arch=amd64]
   $(lsb_release -cs)

Add Docker Ubuntu Repository

The ‘add-apt-repository’ command will automatically update the repository.

Now install the Docker CE package.

sudo apt policy docker-ce
sudo apt install docker-ce=18.06.1~ce~3-0~ubuntu

install the Docker CE package

When the installation is complete, start the docker service and enable it to launch everytime at system boot.

sudo systemctl start docker
sudo systemctl enable docker

Docker CE is up and running on the Ubuntu 18.04 server. Verify the installation by checking the docker version.

docker version

Check Docker version

or run the docker ‘hello-world’.

docker run hello-world

docker run hello-world

Step 2 – Install Docker Compose

Docker-Compose is a command line tool for defining and managing multi-container docker applications. It allows you to create a container as a service, great for your development, testing and staging environment.

Install Docker Compose by downloading the binary file and make it an executable.

sudo curl -L$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose

Now check the docker-compose command.

docker-compose version

Docker Compose is now installed.

Install Docker Compose

Step 3 – Deploy Gitea as Docker Container

In this step, we will create a new docker-compose script that contains all services configuration including PostgreSQL Database and Traefik reverse proxy. We will set up all deployment files on the directory named ‘deployment’.

Create Custom Docker Network

Before creating the deployment configuration, let’s create a new custom bridge network. It will be used for the external service traefik reverse proxy.

Check the list docker network.

docker network ls

Now create a new custom bridge network named ‘hakasenet’.

docker network create hakasenet

Check it again.

docker network ls

Now you will get ‘hakasenet’ network on the list.

Check docker network

Setup Deployment Directory and Files

Create a new directory named ‘deployment’ and the ‘docker-compose.yml’ script on it.

mkdir deployment; cd deployment
touch docker-compose.yml

Now create new directory ‘gitea’ and ‘postgres’ data volume.

mkdir -p gitea/ postgres/

Create a new file ‘acme.json’ and change the permission of the file. it will be used to store Letsencrypt data.

touch acme.json
chmod 600 acme.json

Now create the global traefik configuration ‘traefik.toml’ file.

touch traefik.toml

And below are files and directories we’ve for the Gitea installation using Docker.


Setup Deployment Directory and Files

Setup PostgreSQL Service

The database service PostgreSQL is the first service that we want to configure. The database service will run only on the internal docker network.

And we will be using the Postgres 9.6 image, using ‘gitea’ as database name, user, and password, and set up the postgres data volume.

Edit the ‘docker-compose.yml’ file using vim.

vim docker-compose.yml

Paste configurations below.

version: "3"

    external: true
    external: false

    image: postgres:9.6
    restart: always
      - POSTGRES_USER=gitea
      - POSTGRES_DB=gitea
      - "traefik.enable=false"
      - internal
      - ./postgres:/var/lib/postgresql/data

Save and exit.

Setup Traefik Reverse Proxy

Now we will configure the Traefik reverse proxy for our Gitea installation.

The traefik service will be running under HTTP and HTTPS default ports, running on the custom bridge network named ‘hakasenet’, and we will configure it to use the Letsencrypt certificates that will be defined on the ‘traefik.toml’ file.

Edit the compose script.

vim docker-compose.yml

Paste configurations under the db service configuration.

    image: traefik:latest
    command: --docker
      - 80:80
      - 443:443
      - "traefik.enable=true"
      - "traefik.backend=dashboard"
      - ""
      - "traefik.port=8080"
      - hakasenet
      - /var/run/docker.sock:/var/run/docker.sock
      - ./traefik.toml:/traefik.toml
      - ./acme.json:/acme.json
    container_name: traefik
    restart: always

Save and exit.

Now edit the ‘traefik.toml’ configuration file.

vim traefik.toml

And paste the following configuration.

#Traefik Global Configuration
debug = false
checkNewVersion = true
logLevel = "ERROR"

#Define the EntryPoint for HTTP and HTTPS
defaultEntryPoints = ["https","http"]

#Define the HTTP port 80 and
#HTTPS port 443 EntryPoint
#Enable automatically redirect HTTP to HTTPS
address = ":80"
entryPoint = "https"
address = ":443"

#Enable Traefik Dashboard on port 8080
#with basic authentication method
#hakase and password
    users = [

dashboard = true

#Enable retry sending a request if the network error

#Define Docker Backend Configuration
endpoint = "unix:///var/run/docker.sock"
domain = ""
watch = true
exposedbydefault = false

#Letsencrypt Registration
#Define the Letsencrypt ACME HTTP challenge
email = "[email protected]"
storage = "acme.json"
entryPoint = "https"
OnHostRule = true
  entryPoint = "http"

Save and exit.


  • Change the acme letsencrypt email with your valid email address.

Setup Gitea Service

Edit the ‘docker-compose.yml’ configuration file.

vim docker-compose.yml

Paste the gitea service configuration at the bottom of the line.

    image: gitea/gitea:latest
      - USER_UID=1000
      - USER_GID=1000
    restart: always
      - internal
      - ./gitea:/data
      - "3000"
      - "22"
      - "traefik.enabled=true"
      - "traefik.backend=gitea"
      - ""
      - ""
      - "traefik.port=3000"
      - internal
      - hakasenet
      - db
      - traefik

Save and exit.

The Gitea service will be running on the TCP port ‘3000’, using those two docker networks ‘internal’ and ‘hakasenet’, and will run under the traefik reverse proxy on domain ‘’.

Docker composes configuration for Gitea deployment has been completed.

Deploy All Services

Now deploy the stack using ‘docker-compose’ command below.

docker-compose up -d

The command will download all docker images needed and run services defined on the docker-compose script.

Deploy All Services

And when it’s complete, check available services on docker using ps option as below.

docker-compose ps

Now you will get the result as below.

docker-compose ps

The PostgreSQL database, Gitea, and traefik reverse proxy containers are now up and running. The database service is running on the default port ‘5432’, the gitea server is running on port ‘3000’, and the traefik proxy is running on HTTP and HTTPS ports, accessible from the outside network/internet.

If you want to check all logs from docker check, run command below.

docker-compose logs

docker-compose logs

Step 4 – Gitea Post-Installation

Open your web browser and type your Gitea URL installation. Mine is:

Now you will get the default Gitea page.

Gitea run with Docker

Add the installation path to the URL.

Now you will get the Gitea installation page.

Database configuration

Type the PostgreSQL database details, and use ‘db‘ as a host.

Gitea web installer

General Gitea Configuration

Change the ‘Site title’ with your own title, the ‘SSH Server Domain’ (without https) and ‘Gitea Base URL’ with your gitea server URL.

General Gitea Configuration

Admin Account Settings

On the admin settings, type the admin username, password, and email address.

Admin Account Settings

Now click ‘Install Gitea’ button.

And you will be redirected to the Gitea default user dashboard.

Gitea default user dashboard

Step 5 – Create First Repository in Gitea

On the user home page, click the ‘+’ button.

Now type details of the repository that you want to create.

Add Repository

and click the ‘Create Repository’ button.

The repository has been created.

The repository has been created

Step 6 – Testing First Commit

Back to your terminal shell, and set up the default git user and email.

Run git commands below.

git config --global "hakase"
git config --global "[email protected]"

Now clone the repository.

git clone

Go to the repository directory ‘myyrepo’ and edit the file.

cd myrepo/

make changes on the README file, then save and exit.

Now commit the repository.

git add .
git commit -m 'Edit the file by hakase-labs'

And push it to the server.

git push origin master

Type your username and password.

And following should be the result.

Test Git Commit

Check to the repository page and make sure you get the changes as below.

Gitea installed

The Gitea installation with Docker on Ubuntu 18.04 has been completed successfully.


Bacloud Expands to the United States, Chicago central location

Bacloud Expands to the United States, Chicago central location

Siauliai, Lithuania – Ever since we opened our first knowledge middle in 2005, our ambition has been to turn out to be a key world participant within the Digital Non-public Server (VPS) marketplace. With hundreds of glad consumers in over 70 nations, we’ve been ready to appreciate our ambition and determine ourselves as a go-to supplier of dependable internet web hosting services and products in Lithuania and past.

Now, we’re bringing two of our hottest services and products to the USA: Linux KVM NVMe and Home windows KVM NVMe VPS web hosting.

VPSrv Premium Hosting
VPS web hosting has been rising in reputation as it provides consumers entire keep watch over over their surroundings, permitting them to tweak it exactly for his or her wishes. As our consumers would fortuitously attest, VPS web hosting supplies larger balance and reliability over shared web hosting, and it brings vital value financial savings in comparison with in-house web hosting.

Consumers that select VPS web hosting will pay just for what they actually want and straight away scale their sources in line with present call for. Including extra reminiscence or buying further processing energy is an issue of a easy click on, making VPS web hosting preferrred for agile startups that may cross from 1000 customers to tens of millions in an issue of months and even weeks.

Our VPS web hosting services and products are sponsored by way of high-performance NVMe (Non-Risky Reminiscence Categorical) garage, which delivers as much as 6 occasions higher functionality when compared with vintage SSD disks, transmitting knowledge at as much as 30 Gbps. NVMe was once designed for each undertaking and shopper packages desiring acceleration in essential knowledge, and it gets rid of bottlenecks and gives functions to satisfy the very hard and time-sensitive necessities of cloud computing.

As a result of we use KVM (Kernel-based Digital System) as our virtualization infrastructure of selection, our consumers can concurrently arrange a number of digital machines and their configurations whilst playing awesome safety supplied by way of the Linux kernel, an open-source monolithic Unix-like pc running device kernel that powers just about 70 % of the highest 10 million Alexa domain names.

Excluding the usage of state-of-the-art applied sciences, our US consumers can have the benefit of our strategically selected location: Chicago. Extensively referred to as the premier service hub for the Midwest, Chicago is arguably the most productive location in the USA for suppliers of web hosting services and products, which is why it’s additionally house to Motorola Answers, NetSuite, Snapsheet, Glassdoor, Sprout Social, Flexera, and lots of different internet-centric firms.

In fact, we’re bringing with us our core ideas, which govern the whole lot we do, and that have helped us thrive for neatly over 10 years. We believe our consumers to be the vital a part of our industry and supply dependable 24×7 give a boost to with assured reaction occasions to assist our consumers resolve any issues they will have in a well timed method.

We’re firmly dedicated to offering our services and products at aggressive costs with out sacrificing reliability. Our consumers have the benefit of a 99.97 % community uptime ensure, which has earned us Nice Uptime Award from HostAdvice, a number one internet web hosting data middle.

Closing however now not least, we at Bacloud proceed to put money into new era and strengthen our services and products in each manner we will to lead them to extra horny to current and new consumers alike. We again the whole lot we do with a 30-day a refund ensure as a result of we’re assured in our services and products, and we inspire you to check out them your self to peer what makes us stick out from the group.

phoenixNAP Launches InfraSentry, an Active Defense Cyber Security Threat Management Solution

phoenixNAP Launches InfraSentry, an Active Defense Cyber Security Threat Management Solution

PHOENIX, AZ – phoenixNAP®, a world IT and safety services and products supplier, providing security-focused cloud infrastructure, devoted servers, colocation, and specialised Infrastructure-as-a-Carrier (IaaS) generation answers, introduced lately the release of its Safety Products and services product providing.

“Our teams have been hard at work for nearly two years, building the foundational components needed to deliver this service to our customers,” stated William Bell, Govt Vice President of Product. “We have created a 24/7 SOC, built from the ground up, working hand-in-hand with the teams that you trust to build and maintain your critical infrastructure. InfraSentry is the realization of our vision to create a truly secure Infrastructure-as-a-Service platform.”

VPSrv Premium Hosting
InfraSentry from phoenixNAP is a safety carrier suite offering shoppers with a holistic safety resolution, in a position to complicated detection with lively protection mechanisms, protective our shoppers in opposition to attainable safety threats focused on your environments. Designed to enrich our Infrastructure Products and services via including real-time Danger Detection Products and services (TDS), Complex Finish-Level Coverage (AEP), Incident Triage (IT), and Mitigative Products and services (equivalent to discounted Backup-as-a-Carrier Complex), we offer our shoppers with a depended on, battle-tested means, modeled at the NIST Cyber Safety Framework.

As a world IT infrastructure supplier, phoenixNAP is within the distinctive place to grasp the holistic method to safety and supply a multi-layer information coverage technique. Infrastructure and safety is in its DNA. InfraSentry permits organizations to get admission to a world verbal exchange cloth, in addition to a collection of complete community and alertness tracking techniques to toughen your safety posture.

“We are not an audit company attempting to offer security-related services to capitalize on a market gap. Security for us is not an add-on service. It is built into the fabric of our design and the cornerstone of every service we offer. InfaSentry is a natural extension of our commitment to security. We believe that security is a basic customer expectation and it is our responsibility to provide our customers with the support necessary to keep their data safe” stated Anthony Dezilva, Product Supervisor, Safety Products and services.

InfraSentry enhances the hot release of phoenixNAP’s Knowledge Safety Cloud, a regulatory compliant cloud infrastructure platform that helps workloads requiring stringent governing controls to make stronger organizations’ certification wishes.

To care for the essential stage of alertness and preparedness, the phoenixNAP groups teach along the best ranges of cyber defenders inside the business. The protection groups acquire battle-tested talents and give a contribution in go back in the course of the endured building of orchestration tactics, and the usage of its world footprint to come across and operationalize threat-vector intelligence prior to it affects our shopper base.

“InfraSentry represents a significant extension of our security services portfolio and is fundamental to our “Secure-by-Design” product center of attention,” stated Ian McClarty, president of phoenixNAP. “With threat detection and management as a primary focus in a growing number of organizations, we are thrilled to offer a solution that responds to the immediate needs of the market.”

Each and every Safety Operations Middle Analyst at phoenixNAP is, at a minimal, qualified on the CompTIA Cybersecurity Analyst CySA+ (CSA+) stage. Each and every analyst has effectively engaged in an eight-week Danger Detection, Searching, and Incident Reaction curriculum, performed below the ACTRA TUF workforce program.

“Security Services is a major step in the evolution of phoenixNAP’s value-added services portfolio,” stated Ray Powers, Govt Vice President of Implementations. “We pride ourselves in offering painless solutions to the ever-growing compliance and security regulations needs of companies doing business via the modern internet. We have invested heavily in this global infrastructure and the training of our SOC and operations teams. We can’t wait for our customers to experience this service.”

InfraSentry is determined by the most productive of breed, multi-tenant risk control answers, system studying, and incident orchestration applied sciences to supply important infrastructure insights. The platform objectives to spot any deviant habits and sign the operators of a possible risk tournament. Other habits patterns are accumulated from each real-time collaborative and subscribed business risk information resources, holding present with up-to-date information of imaginable malicious actions. Correlating this knowledge with Darkish Internet risk intelligence, we intention to actively protect our buyer networks, with out looking forward to the primary indicators of have an effect on.

“The launch of InfraSentry is a major milestone for our team and the first step in our MDR (Manage, Detect and Respond) capability. It is enhanced through Incident Orchestration and the integration of Dark Web Threat Intelligence,” stated William Bell, EVP of Product. “We continue to focus on extending this service offering to help our clients further solidify their security posture.”

“Nearly two years ago, we set out on a journey to fulfill the client demand that their infrastructure provider also handles the security of their infrastructure. Designated as a “Security-First’” corporate, via our govt workforce, we started to turn into our product choices and our operations not to handiest meet however exceed that function. Greater than figuring out our function of establishing probably the most powerful safety providing to be had, we’re extremely joyful to announce that InfraSentry can make stronger and make stronger the Confidentiality, Integrity, and Availability (CIA Triad) of your important infrastructure.” stated Anthony Dezilva, Product Supervisor, Safety Products and services.

For more info about phoenixNAP’s safety efforts, consult with this web page.

phoenixNAP is Microsoft Gold Datacenter spouse, Platinum Veeam Cloud & Carrier Supplier (VCSP) spouse, and a Premier Carrier Supplier within the VMware Cloud Supplier Program. phoenixNAP could also be a PCI DSS Validated Carrier Supplier and its flagship facility is SOC Kind 1 and SOC Kind 2 audited.

About phoenixNAP
phoenixNAP is a world IT services and products supplier with a focal point on cybersecurity and compliance-readiness, whose innovative Infrastructure-as-a-Carrier answers are delivered from strategic edge places international. Its cloud, devoted servers, {hardware} leasing, and colocation choices are constructed to satisfy at all times evolving IT companies necessities. Offering complete crisis restoration answers, DDoS-protected world community, hybrid IT deployments with instrument and hardware-based safety, phoenixNAP absolutely helps its purchasers’ trade continuity making plans. Providing scalable and resilient opex answers with knowledgeable personnel to help, phoenixNAP helps expansion and innovation in companies of any measurement enabling their virtual transformation. To be informed extra about phoenixNAP’s world IT services and products, consult with

Nexcess Brings Cloud Managed Application Hosting To Australia With The Nexcess Cloud

Nexcess Brings Cloud Managed Application Hosting To Australia With The Nexcess Cloud

SOUTHFIELD, MI – Nexcess has introduced the growth of the Nexcess Cloud to its Sydney, Australia information middle, offering companies all the way through Australia and the Asia Pacific area with low-latency performance-optimized Magento, WordPress, and WooCommerce cloud website hosting. The Nexcess Cloud is a controlled cloud website hosting answer optimized for functionality, safety, and scalability. Designed to reinforce websites and eCommerce shops of any measurement, the Nexcess Cloud empowers companies with computerized useful resource scaling, fast deployment, PCI DSS compliance, and a variety of developer-friendly options.

Nexcess Cloud nodes are optimized for person programs, together with WordPress, WooCommerce, Magento, Craft CMS, and ExpressionEngine. Nexcess Cloud customers get pleasure from PHP, database, caching, running gadget, and community optimizations that calibrate utility website hosting nodes for max reliability and function.

VPSrv Premium Hosting
“Since we first introduced the Nexcess Cloud in the US last year, we’ve seen growing international demand for a fully-featured and highly optimized managed cloud application hosting platform,” commented Chris Wells, President and CEO of Nexcess. “We’re excited to introduce the Nexcess Cloud to Australia as part of a planned roll-out to all of our locations in the near future.”

The Nexcess Cloud lets in website online and retailer house owners to temporarily deploy and organize programs with an intuitive web-based interface. In contrast to many utility website hosting platforms, the Nexcess Cloud was once additionally constructed for builders, with a complete vary of technical gear that come with model keep watch over, fast deployment of developer and staging websites with integrated database scrubbing, Composer reinforce, and multi-user SSH and FTP get right of entry to.

Nexcess’ Sydney facility is founded in a brand-new state of the art information middle that gives low-latency connectivity to Australia, New Zealand, and Southeast Asian markets, together with Vietnam, South Korea, and Japan. The information middle provides complete energy and community redundancy, with darkish fiber community connections to a vast vary of primary bandwidth suppliers.

About Nexcess
Nexcess is a Southfield, Michigan-based controlled cloud website hosting corporate based in 2000, with information facilities allotted all the way through america, Europe, and Australia. Nexcess provides plenty of performance-optimized and scalable controlled cloud website hosting answers for Magento, WordPress, WooCommerce, ExpressionEngine, Craft CMS, and OroCRM. For more info, talk over with http://www.nexcess.web.

3dcart Overhauls its Enterprise eCommerce Plans to Bring Low-Priced Solutions to High-Volume Stores

3dcart Overhauls its Enterprise eCommerce Plans to Bring Low-Priced Solutions to High-Volume Stores

TAMARAC, FL – 3dcart, a number one eCommerce platform, introduced as of late that they’re increasing their Undertaking eCommerce answers to incorporate 2 new plans with the intention to provide high-volume traders with extra choices for operating their trade. Each plans are related to equivalent plans introduced through different eCommerce suppliers together with Shopify Plus, BigCommerce Undertaking, and Magento Undertaking, despite the fact that 3dcart’s resolution gives decrease pricing and a number of other benefits over those different choices.

By way of fleshing out its Undertaking eCommerce plans, 3dcart has made it more uncomplicated and extra reasonably priced for high-volume traders in any business to get right of entry to 3dcart’s cloud-hosted enterprise-grade platform, which contains probably the most robust eCommerce characteristic set, safety, and internet web hosting in the marketplace as of late. “By providing a range of Enterprise plans, we can serve our merchants better, both by creating ideal eCommerce solutions and by providing a more powerful platform at a lower price than competing plans like Shopify Plus, BigCommerce Enterprise, and Magento Enterprise,” stated Gonzalo Gil, 3dcart CEO. “Our new plans also enable growing businesses to scale up at a more affordable rate, while gaining all the advantages of using 3dcart.”

VPSrv Premium Hosting
3dcart’s versatile Undertaking plans be offering extra options for the cash than equivalent plans introduced through competing platforms, together with state of the art Search engine marketing equipment, complicated retailer design imposing Google AMP and different benefits, and extra fee integrations than some other platform in the marketplace. 3dcart additionally comes with extra out-of-the-box options than different platforms, which means much less cash spent on apps and customized construction. Absolutely PCI compliant and making sure 99.99% server uptime, 3dcart is ready to ship a awesome SaaS eCommerce platform to Undertaking traders international.

For more info about 3dcart’s new Undertaking plans, seek advice from

About 3dcart
3dcart (, positioned in Tamarac, Florida, is probably the most Search engine marketing-friendly eCommerce platform for outlets and web entrepreneurs to develop their on-line retail outlets’ site visitors and gross sales. 3dcart contains 24×7 Technical Enhance, 100+ Cellular-In a position Subject matters, order control device, integrated weblog, e mail advertising equipment and extra. Since 1997, the corporate has been a pace-setter within the eCommerce marketplace, development on-line retail outlets for companies of all sizes. As of late, 3dcart is Visa PCI Qualified and a Google Spouse.