- Introduction
- Contributing
- Team
- Issues
- Prerequisites
- Installation
- Quick Start
- Configuration
- Maintenance
- Features
- References
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.
Using docker-compose.
Start GitLab using:
docker-compose up -d
docker-compose run --rm gitlab app:rake gitlab:backup:create
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
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
docker exec -it gitlab bash