- 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 -ddocker-compose run --rm gitlab app:rake gitlab:backup:createBefore performing a restore make sure the container is stopped and removed to avoid container name conflicts.
docker stop gitlab && docker rm gitlabIf 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:setupExecute 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:restoreCopy 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:reposdocker exec -it gitlab bash