Gitness, verified and packaged by Elestio
10K+
Gitness is an open source development platform packed with the power of code hosting and automated DevOps pipelines.
Deploy a fully managed Gitness on elest.io if you are interested in exploring a decentralized and community-oriented approach to online content.
You can deploy it easily with the following command:
git clone https://github.com/elestio-examples/gitness.git
Copy the .env file from tests folder to the project directory
cp ./tests/.env ./.env
Edit the .env file with your own values.
Set env vars
set -o allexport; source .env; set +o allexport;
Run the project with the following command
docker-compose up -d
Run below steps after install:
set -o allexport; source .env; set +o allexport;
#wait until the server is ready
echo "Waiting for software to be ready ..."
sleep 30s;
target=$(docker-compose port gitness 53521)
curl http://${target}/api/v1/register?include_cookie=true \
-H 'accept: */*' \
-H 'accept-language: fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7,he;q=0.6' \
-H 'authorization;' \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
-H 'pragma: no-cache' \
-H 'user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36' \
--data-raw '{"display_name":"root","email":"'${ADMIN_EMAIL}'","uid":"root","password":"'${ADMIN_PASSWORD}'"}' \
--compressed
You can access the Web UI at: http://your-domain:53521
Here are some example snippets to help you get started creating a container.
version: "3.3"
services:
gitness:
image: elestio/gitness:${SOFTWARE_VERSION_TAG}
restart: always
ports:
- "172.17.0.1:53521:53521"
environment:
- GITNESS_URL_API=https://${DOMAIN}/api
- GITNESS_URL_GIT=https://${DOMAIN}/git
- GITNESS_HTTP_PORT=53521
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
- "./storage/gitness:/data"
| Variable | Value (example) |
|---|---|
| DOMAIN | http://172.17.0.1:53521 |
| ADMIN_EMAIL | [email protected] |
| ADMIN_PASSWORD | test@123 |
The Elestio Gitness Docker image sends the container logs to stdout. To view the logs, you can use the following command:
docker-compose logs -f
To stop the stack you can use the following command:
docker-compose down
To make backup and restore operations easier, we are using folder volume mounts. You can simply stop your stack with docker-compose down, then backup all the files and subfolders in the folder near the docker-compose.yml file.
Creating a ZIP Archive For example, if you want to create a ZIP archive, navigate to the folder where you have your docker-compose.yml file and use this command:
zip -r myarchive.zip .
Restoring from ZIP Archive To restore from a ZIP archive, unzip the archive into the original folder using the following command:
unzip myarchive.zip -d /path/to/original/folder
Starting Your Stack Once your backup is complete, you can start your stack again with the following command:
docker-compose up -d
That's it! With these simple steps, you can easily backup and restore your data volumes using Docker Compose.
Content type
Image
Digest
sha256:a6ee8d097…
Size
82.1 MB
Last updated
5 days ago
docker pull elestio/gitness:v3.3.0Pulls:
495
Last week