Running with Docker Compose
Attention!
Minimum required Docker version is 20.04.
Download the latest GitFlic self-hosted version.
-
Download the enterprise image
gitflic-server-ee.tarfrom your personal account underdocker/images/ -
Load the image into your system:
docker load -i gitflic-server-ee.tar -
Navigate to the docker folder with release files and edit the .env file:
# .env ... GITFLIC_IMAGE=gitflic-server-ee:<current_tag> ... -
Adjust other settings if needed
-
Generate SSH server certificate and 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 gitflic_cert volume and copy generated keys (find mount point with
docker volume inspect gitflic_cert | grep Mountpoint):docker volume create gitflic_cert sudo cp private_key.pem public_key.pem key.pem $(docker volume inspect gitflic_cert -f '{{.Mountpoint}}') -
Start the system:
docker compose up -d
-
Generate SSH server certificate and 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 gitflic_cert volume and copy generated keys:
docker volume create gitflic_cert cp private_key.pem public_key.pem key.pem $(docker volume inspect gitflic_cert -f '{{.Mountpoint}}') -
Navigate to the docker directory in the unpacked archive and edit
.envif needed -
Start the system:
docker compose --detach -f docker-compose.yaml --env-file .env up
Default Login Credentials
- Email:
adminuser@admin.local - Password:
qwerty123
Volume and Data Description
gitflic_datavolume stores GitFlic application datagitflic_etcvolume stores GitFlic configurationgitflic_certvolume stores certificatespg_datavolume stores PostgreSQL databaseredis_datavolume stores Redis database.envis the main configuration file loaded by defaultexternal.envis an optional file for overriding settings (database connections, email, elasticsearch). Can be empty/commented but must exist alongsidedocker-compose.yamlTRANSPORT_URLparameter was removed from.env- now usesBASE_URLvalueTRANSPORT_SSHparameter is only used during initial setup for correct SSH URL display. Can be modified later in GitFlic web interface- To add additional parameters to
gitflic-server, create a.propertiesfile (e.g.s3.properties) and place it ingitflic_etcvolume. Changes will apply after restart. Avoid modifyingapplication.propertiesdirectly
Automatic Translation!
This page has been translated using automated tools. The text may contain inaccuracies.