Deployment using Docker Compose
Warning!
The minimum Docker version required for operation is 20.04.
Download the latest version of GitFlic self-hosted.
Installation and Launch on Linux
-
Download the gitflic-server-enterprise image from your personal account.
docker/images/gitflic-server-ee.tar -
Load the image into the system
docker load -i gitflic-server-ee.tar -
Go to the docker folder with the gitflic-server release files and edit the .env file
# .env ... GITFLIC_IMAGE=gitflic-server-ee:<current tag> ... -
Adjust other settings if necessary
-
Create a certificate for the SSH server and an RSA key pair
ssh-keygen -t ed25519 -N "" -q -f ./key.pem openssl genpkey -algorithm RSA -out ./private_key.pem -pkeyopt rsa_keygen_bits:2048 openssl rsa -pubout -in private_key.pem -out ./public_key.pem -
Create a volume named gitflic_cert and place the created keys inside it. The volume mount point can be found using the command
docker volume inspect gitflic_cert | grep Mountpointdocker volume create gitflic_cert sudo cp private_key.pem public_key.pem key.pem $(docker volume inspect gitflic_cert -f '{{.Mountpoint}}') -
Launch the system
docker compose up -d
-
Create a certificate for the SSH server and an RSA key pair
ssh-keygen -t ed25519 -N "" -q -f ./key.pem openssl genpkey -algorithm RSA -out ./private_key.pem -pkeyopt rsa_keygen_bits:2048 openssl rsa -pubout -in private_key.pem -out ./public_key.pem -
Create a volume named gitflic_cert and place the created keys inside it. The volume mount point can be found using the command
docker volume inspect gitflic_cert | grep Mountpointdocker volume create gitflic_cert cp private_key.pem public_key.pem key.pem $(docker volume inspect gitflic_cert -f '{{.Mountpoint}}') -
Go to the docker directory inside the unpacked archive and edit the
.envfile if necessary -
Launch the system
docker compose --detach -f docker-compose.yaml --env-file .env up
Login credentials
- Email:
adminuser@admin.local - Password:
qwerty123
Installation and Launch on Windows
Use PowerShell for installation and configuration. When using MINGW, file paths and commands may differ; you need to independently determine the standard paths to the files described below.
-
Create a certificate for the SSH server and an RSA key pair
ssh-keygen -t ed25519 -N "" -q -f ./key.pem openssl genpkey -algorithm RSA -out ./private_key.pem -pkeyopt rsa_keygen_bits:2048 openssl rsa -pubout -in private_key.pem -out ./public_key.pem -
Create a volume named gitflic_cert and place the created keys inside it. The volume mount point can be found using the command
docker volume inspect gitflic_cert | grep Mountpointdocker run --rm -v gitflic_cert:/gitflic_cert .:/_data alpine:latest cp _data/key.pem _data/private_key.pem _data/public_key.pem /gitflic_cert -
Go to the docker directory inside the unpacked archive and edit the
.envfile if necessary -
Launch the system
docker compose -f docker-compose.yaml --env-file .env up --detach
Login credentials
- Email:
adminuser@admin.local - Password:
qwerty123
Description of New Volumes and Data
- Volume
gitflic_datais responsible for storing GitFlic software data. - Volume
gitflic_etcis responsible for storing GitFlic software settings. - Volume
gitflic_certis responsible for storing GitFlic software certificates. - Volume
pg_datais responsible for storing Postgres database data. - Volume
redis_datais responsible for storing Redis database data. - The
.envfile is the main file loaded by default. - The
external.envfile is additional and serves to override data. It is responsible for database connections, mail configuration, and working withelasticsearch. The file can be empty or commented out but must be present in the directory alongsidedocker-compose.yaml. - The
TRANSPORT_URLparameter has been removed from.env. Data from theBASE_URLvariable is substituted into it. - The
TRANSPORT_SSHparameter is used only during the initial initialization of GitFlic software and serves to set the correct display of links forSSH. If necessary, it can be overridden in the GitFlic software web interface. - If it is necessary to add additional parameters to
gitflic-server, create a file with the.propertiesextension (for example,s3.properties) and place it in thegitflic_etcvolume. Changes will be applied automatically after restarting the GitFlic software. It is not recommended to modify theapplication.propertiesfile.
Automated translation!
This page has been automatically translated. The text may contain inaccuracies.