Skip to content

Component deployment diagrams


GitFlic architecture (self-hosted) supports several deployment models. The model is selected based on the development platform's requirements for availability, performance, and security.

The minimum VM requirements for installing GitFlic are provided in the documentation: https://docs.gitflic.ru/latest/setup/gitflic_app/min_req/

Labels used in the diagrams: TLS Cert — the certificate for HTTPS on the proxy server; SSH Cert — the key of GitFlic's built-in SSH server.

Basic HTTP diagram

All components run on a single virtual machine (VM). HTTP and SSH traffic reaches the application directly, without a proxy, and web traffic is not encrypted. This configuration is suitable for demonstrations and functional testing in an isolated environment.

http_sheme

Basic HTTPS diagram

This configuration follows the HTTP diagram, but web traffic is encrypted using TLS. Nginx or HAProxy processes traffic in front of the application using a TLS certificate. It is suitable for standard development processes where brief downtime is acceptable.

http_sheme

Basic cluster diagram

The GitFlic application and databases are distributed across two VMs. One runs the proxy and multiple GitFlic instances, while the other runs PostgreSQL, KeyDB (Redis), and the message broker. Some files are stored in S3 object storage. This configuration is suitable for medium workloads when a single application instance is no longer sufficient.

http_sheme

Cluster diagram for a production environment

Each layer runs on separate nodes: incoming traffic is handled by a dedicated load balancer VM, and the GitFlic application is deployed on at least two nodes. The data layer consists of PostgreSQL with a replica; a KeyDB/Redis cluster with three master nodes; shared file storage (NFS or Ceph) for repositories and images; and S3 for the package registry, LFS, and CI/CD artifacts. This configuration is intended for high-load operation with fault-tolerance requirements.

http_sheme

Automated translation!

This page has been automatically translated. The text may contain inaccuracies.