GithubHelp home page GithubHelp logo

isabella232 / alpine-docker-gitlab Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alpinelinux/alpine-docker-gitlab

0.0 0.0 0.0 300 KB

[MIRROR] Gitlab docker image based on Alpine Linux

Home Page: https://gitlab.alpinelinux.org/alpine/infra/docker/gitlab

License: MIT License

Dockerfile 1.20% Shell 98.80%

alpine-docker-gitlab's Introduction

Alpine Gitlab Docker

Build Status

Alpine Linux based docker image and tools for Gitlab.

Why another Gitlab docker image?

  • Completely based on Alpine Linux (no static binaries)
  • Use separate docker images for services (where possible)
  • Optimized for size
  • Bundle services with docker compose

Setup

To get Gitlab up and running you need to first generate 2 secrets and provide then as environment variables. Most suitable is via .env file in alongside your docker-compose file. Mandatory variables are:

  • GITLAB_HOSTNAME
  • GITLAB_ROOT_PASSWORD
  • POSTGRES_PASSWORD
  • POSTGRES_USER

After which you need to create and bring up the containers

docker-compose up

Watch the output on console for errors. It will take some time to generate the db and update permissions. Ones its done without errors you can Ctrl+c to stop the containers and start them again in the background.

Access the application

Visit your Gitlab instance at http://dockerhost

Configuration

The default configuration is very limited. The custom configuration is stored in /etc/gitlab in the container and will be copied to the config directory inside /home/git/gitlab/config. Any new configuration added will be automatically copied to the container. Any existing configuration will not be overwritten.

Location of the configuration on the host depends on the volume settings. the default locations is:

cd /srv/docker/gitlab/config

Modify a configuration file and restart the containers.

Additional functions

The entrypoint command has some additional function. To show them run:

docker-compose exec gitlab entrypoint.sh help

Backups

To exclude some items from the backup you can set the environment variable $GITLAB_BACKUP_SKIP which will set SKIP= see: https://docs.gitlab.com/ee/raketasks/backup_restore.html

alpine-docker-gitlab's People

Contributors

clandmeter avatar ikke avatar ncopa avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.