docker:
安装说明:
https://docs.gitlab.com/omnibus/docker/README.html
1.导出gitlab的镜像
docker save -o gitlab_image.tar gitlab/gitlab-ce
F:\docker\images\gitlab_image.tar
2.导入:
docker import test.img test
3.Install GitLab using Docker Compose
Create a docker-compose.yml file (or download an example):
web:
image: 'gitlab/gitlab-ce:latest'
restart: always
hostname: 'gitlab.example.com'
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'https://gitlab.example.com'
# Add any other gitlab.rb configuration here, each on its own line
ports:
- '80:80'
- '443:443'
- '22:22'
volumes:
- '$GITLAB_HOME/gitlab/config:/etc/gitlab'
- '$GITLAB_HOME/gitlab/logs:/var/log/gitlab'
- '$GITLAB_HOME/gitlab/data:/var/opt/gitlab'
4.启动:
docker-compose up -d