19.08.2024

How to install Confluence for company?

As a team grows in size, it is often necessary to document and manage the accumulated knowledge. This approach allows teams to work more efficiently and newcomers to the field to understand the material on their own. Public resources such as Google Docs, Notion, and others give access to your trade secrets to site administrators, and are not always convenient to work with. In this material we will understand how to raise your wiki in the corporate segment of the network and do it safely!

What is Confluence?

Confluence is a Wiki platform that allows to organise accumulated knowledge and materials in a single space for employees. Confluence is a server with a web panel that can be accessed using a standard login/password or an external authentication system. In addition to standard tasks, it allows for analyses, retrospectives, team task management and much more, thanks to built-in templates.

Screenshot №1 — Intro page

Since employees have different access to information, there is an access differentiation system that determines what information an employee can access.

How is Confluence implemented and what are its requirements?

The platform consists of services that provide the following: web server, database, caching server, as well as application server with various modules from authentication to request handlers.

Screenshot №2 — Schema of Confluence

The user contacts the web server and provides his authentication credentials. The request goes to the web application, the architecture of which is shown above, and authenticates with the server. After that the request is processed on the web application and returns the response to the client. In the process of query processing, the web application can access the database and make changes.

Installation is done via Docker image, which allows to install the product in a few steps isolated from other services on the machine. All architectural components are already included in the image and are automatically lifted after the container is created on the server. A number of minimum requirements need to be met in order to work:

For example, a basic wiki system with 150 accounts, 30 spaces and 1000 pages will require about 6 gb of RAM, 2 cores and about 25 GB of free disk space.

Note that when calculating the necessary requirements, you need to take into account the resource consumption of the OS itself and the rest of the applications. When calculating the power requirements of the machine itself and Confluence, add them up and relate them to your resources.

If you don't have sufficient resources than you can perform actions on powerful cloud servers. Serverspace provides isolated VPS / VDS servers for common and virtualize usage.

Screenshot №3 — Create Server

It will take some time to deploy server capacity. After that you can connect in any of the convenient ways.

How to install Confluence quickly?

Let's install Docker container manager, when working it is necessary to take into account the OS version for installation on the company's site. In our case Docker is installed on RHEL similar OS.

sudo dnf remove docker*
sudo dnf install -y yum-utils
sudo yum-config-manager --add-repo https://download.docker.com/linux/rhel/docker-ce.repo
sudo dnf update && sudo dnf install docker-ce
sudo systemctl start docker && sudo systemctl enable docker

Screenshot №4 — Docker installation

After the installation, you need to download the Confluence image itself by running the command:

docker pull atlassian/confluence

Screenshot №5 — Pull of image

The image or archive has been placed in local storage, and now when creating a container based on this image, docker daemon will be able to find it on the device. The system also requires the creation of a virtual volume, which will be separate from the main OS file system. This approach ensures that Wiki resources are isolated and the service can be flexibly managed:

docker volume create confluncee

Let's move on to starting Confluence and configuring the container, the environment in which the Wiki will run:

docker run -v /confluencee:/var/atlassian/application-data/confluence --name="confluencee" -d -p 8090:8090 -p 8091:8091 atlassian/confluence

Let's consider and describe the parameters of this command:

This command will allow you to run Confluence in a separate environment and all the necessary services to run it. Management is done through the web panel, for this we will go to the external or local address of the device through the browser. For configuration and testing, the format address is suitable:

http://localhost:8090

Screenshot №6 — License

Insert your licence key or purchase it on the copyright holder's website by clicking on Get an evaluation license. Then click Next.

Screenshot №7 — Type of installation

Select one of the deployment types: single node or cluster. The second type is used for large costs and requirements to the number of users, and the first for small and medium volumes, where one server can cope. Once the deployment type has been selected, let's select a template.

Screenshot №8 — Template of Confluence

It is possible to use an example of an existing wiki, or build a blank page that can later be designed from scratch.

Screenshot №9 — Confluence users

Specify the details for the Wiki administrator account and save by clicking Next. Then define the space, it can be a group for a team or for the whole organisation. It all depends on how you think about the structure of the knowledge base.

Screenshot №10 — Space of works

As a result of all manipulations, the working panel for Wiki opens, where the basic features of the service are described.

Screenshot №11 — Main page

More in-depth customisation can be done by clicking the gear on the top left, to start building the knowledge base use the To create button at the top. By selecting a template, you can structure the base for most of the team's tasks via the multi-point.