Dockrized GitLab used by LUG@USTC
8.4K
[gpt-4] # ustclug/gitlab Docker Image README
This Docker image is labeled as "ustclug/gitlab", provided by the USTCLUG (University of Science and Technology of China Linux User Group). "ustclug/gitlab" is a Docker image that equips you with a pre-configured GitLab, a web-based DevOps lifecycle tool that provides a Git-repository manager.
You can pull the Docker image using the following command:
docker pull ustclug/gitlab
Once you have pulled the image, run the Docker container with this command:
docker run -d --hostname gitlab.example.com -p 443:443 -p 80:80 -p 22:22 --name gitlab ustclug/gitlab:latest
In this command, -d stands for detached mode, which means the container will run in the background. --hostname to specify the container hostname. -p option is used to map the host ports to the container ports. --name is to specify a name for the container.
The "ustclug/gitlab" Docker image uses several environment variables that allow you to customize various settings.
For example:
GITLAB_OMNIBUS_CONFIG: Allows you to supply gitlab.rb configuration settings.
EXTERNAL_URL: Configures the external URL for users to reach GitLab.
To set these environment variables, use the -e flag.
docker run -d -e GITLAB_OMNIBUS_CONFIG="external_url 'http://gitlab.example.com'; gitlab_rails['gitlab_shell_ssh_port']=2222;" -p 80:80 -p 443:443 -p 22:22 ustclug/gitlab
To preserve data across container shutdown and startup, consider using Docker volumes. For "ustclug/gitlab," you might want to preserve GitLab logs, configuration, and data.
For example:
docker run -d -v /srv/gitlab/config:/etc/gitlab:Z -v /srv/gitlab/logs:/var/log/gitlab:Z -v /srv/gitlab/data:/var/opt/gitlab:Z ustclug/gitlab
If you have any issues with this image, please reach out by opening an issue in our GitHub repository.
NOTE: This image should only be used in environments you trust, as it contains pre-configured settings that may not be suitable for all users. Always review Docker images before use in production environments.
Content type
Image
Digest
Size
441.9 MB
Last updated
about 9 years ago
docker pull ustclug/gitlab:9.1.0-1