Docker network deployment version Gitlab

Gitlab deployment:
1. Remember restore a backup file copy gitlab-secrets.json, 500 encounters an error or will
2. Download Docker rpm package dependencies and
3. The outer web machine download mirrors
a pulling --Docker pull gitlab / gitlab. -CE: Latest
B save save /opt/gitlab.tar gitlab -o --Docker / gitlab-CE:. Latest
. C -i /opt/gitlab.tar load load --docker
4. Create a bridge network --docker Docker gitlabNet the Create Network
5. start gitlab container and allow the container to boot from Kai --docker run -d -m 15G --name gitalbce --restart always -p 443: 443 -p 1080: 80 -p 1022: 22 -v / opt / gitlab / config: / etc / gitlab -v / opt / gitlab / logs: / var / log / gitlab -v / opt / gitlab / Data: / var / opt / gitlab gitlab / gitlab-CE: Latest
6. The container connector network network Connect gitlabNet gitlabce --docker
7. the configuration gitlab
A. ssh modify the host and Port
B. modifications backup_keep_time
8. Docker service enable docker.service boot --systemctl
9. The Docker backup timing
a. Preparation of backup files sh authorizing U + X gitlab_backup.sh --chmod
B. The crond service starts automatically --systemctl enable crond.service
prepared Timing task --0 2 * * 2,6 /opt/Gitlab/gitlab_backup.sh start

Guess you like

Origin www.cnblogs.com/weizai20150105/p/12039929.html