1. gitlab 使用容器方式啓動的,分別在 192.168.1.247 , 192.168.1.248 兩個節點部署;
2. 兩個節點共同掛載nfs存儲到本地/nfs-storage;git
```bash
192.168.1.249:/storage /nfs-storage nfs rsize=8192,wsize=8192,timeo=14,intr
```github
3. gitlab 容器將數據目錄映射在nfs-掛載目錄,實現兩個節點故障切換後數據一致\(轉到Gitlab/README.md\)docker
4. 使用Keepalived 地址漂移功能進行故障切換\(轉到Gitlab\_高可用-Keepalived\)bash
5. 使用compose啓動後可能會有沒法發送郵件的問題,安裝如下方法修改重啓便可;dom
[https://github.com/sameersbn/docker-gitlab/blob/18a5b1a5ab059f89628b59752ec07af9e6d147d5/assets/runtime/config/gitlabhq/gitlab.yml](https://github.com/sameersbn/docker-gitlab/blob/18a5b1a/assets/runtime/config/gitlabhq/gitlab.yml)gitlab
/home/git/gitlab/config/initializers/smtp\_settings.rbssl
```
ActionMailer::Base.smtp_settings = {
address: "smtp.exmail.qq.com",部署
port: 465,openssl
user_name: "git@boke.com",it
password: "66666666",
domain: "exmail.qq.com",
authentication: :login,
enable_starttls_auto: true,
openssl_verify_mode: 'none' # See ActionMailer documentation for other possible options
}
```
待續.............