Skip to content

adriantse/docker-compose-gitlab-ce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

docker-compose-gitlab-ce

Introduction

GitLab CE is set up in the Docker image using the install from source method as documented in the the official GitLab documentation.

For other methods to install GitLab please refer to the Official GitLab Installation Guide which includes a GitLab image for Docker.

Contributing

Team

Issues

Prerequisites

Installation

Quick Start

Using docker-compose.

Start GitLab using:

docker-compose up -d

Configuration

Maintenance

Creating backups

docker-compose run --rm gitlab app:rake gitlab:backup:create

Restoring Backups

Before performing a restore make sure the container is stopped and removed to avoid container name conflicts.

docker stop gitlab && docker rm gitlab

If this is a fresh database that you're doing the restore on, first you need to prepare the database:

docker run --name gitlab -it --rm [OPTIONS] \
    gitlab app:rake db:setup

Execute the rake task to restore a backup. Make sure you run the container in interactive mode -it.

docker run --name gitlab -it --rm [OPTIONS] \
    gitlab:10.8.3-1 app:rake gitlab:backup:restore

Import Repositories

Copy all the bare git repositories to the repositories/ directory of the data store and execute the gitlab:import:repos rake task like so:

docker run --name gitlab -it --rm [OPTIONS] \
    gitlab app:rake gitlab:import:repos

Shell Access

docker exec -it gitlab bash

References

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published