备份:
1 | gitlab-rake gitlab:backup:create |
恢复:
1 | gitlab-ctl stop unicorn |
repositories 导入其它版本:
1
gitlab-rake --trace gitlab:import:repos['/var/opt/gitlab/git-data/repositories']
docker-compose.yml 文件:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
gitlab:
image: 'gitlab/gitlab-ce:11.0.1-ce.0'
restart: always
container_name: gitlab
privileged: true
hostname: 'xxx.com'
environment:
GITLAB_OMNIBUS_CONFIG: |
# Add any other gitlab.rb configuration here, each on its own line
unicorn['worker_timeout'] = 120
unicorn['worker_processes'] = 8
ports:
- '4080:80'
- '4443:443'
- '4022:22'
volumes:
- '/etc/gitlab:/etc/gitlab'
- '/var/log/gitlab:/var/log/gitlab'
- '/data/gitlab:/var/opt/gitlab'