- 安裝brew - Mac下推薦的包管理器
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- 安裝docker
brew install docker
- 獲取yml文件
wget https://raw.githubusercontent.com/sameersbn/docker-gitlab/master/docker-compose.yml
- 如果你的mac沒有裝wget
brew install wget
-
修改yml文件內(nèi)關(guān)于redis和github的配置
image.png
將圖中紅色部分的路徑改為你本地想要存放的路徑
- 啟動docker ( 雙擊app即可)
- 下載并啟動github
docker-compose up [-d]
- 訪問gitlab
本地網(wǎng)址: http://localhost:10080
初始用戶名:root 密碼:5iveL!fe - 關(guān)閉容器
docker-compose down