Sign inSign up

saramorillon/mini-git

By saramorillon

Updated about 3 years ago

Image
0

1.0K

saramorillon/mini-git repository overview

Mini Git

Mini Git is a minimal UI for Git.

Installation

With Docker

docker pull saramorillon/mini-git:latest

With docker-compose

You can use the docker-compose.yml provided as an example.

:warning: Make sure that the db and logs folder are writable by the container user (uid: 1000 - gid: 1000)

Using source code (production)
  • Download the latest release of mini-git
  • Install packages using command yarn install --production
  • Make sure that your system is configured with the appropriate environment variables (see below)
  • Run project using command yarn start
Using source code (development)
  • Download the latest release of mini-git
  • Install packages using command yarn install
  • Rename .env.template to .env and fill it with appropriate values
  • Run project using command yarn start:dev

Running Mini Git

Mini Git listens to port 3000

The default credentials are admin/admin.

Make sure that git is installed on your server as git command are used by the backend (git is installed by default in the Dockerfile).

Environment variables

VariableValue typeDefault valueDescription
NODE_ENVdevelopment | productionEnvironment of the application
APP_KEYstringApp key for session
APP_PORTnumber80App port
LOG_LEVELdebug | info | warn | errorinfoLevel of the loger
SESSION_DIRstringDirectory to store session
REPO_DIRstringDirectory where repositories are stored
UPLOAD_DIRstringDirectory to store attachments
DB_PATHstringPath of sqlite database
COOKIE_DOMAINstringDomain of the session cookie
MYSQL_LOGGINGbooleanShould mysql queries be logged to console or not

Tag summary

Content type

Image

Digest

sha256:3ce6e607f

Size

97 MB

Last updated

about 3 years ago

docker pull saramorillon/mini-git