启动方式:
将内容保存至docker-compose.yml 文件内;
使用命令“docker-compose up -d“启动;

```yml
version: '2'

services:
boxfish-redis:
image: sameersbn/redis:latest
restart: always
volumes:
- /nfs-storage/gitlabnew/redis:/var/lib/redis

boxfish-gitlab:
image: sameersbn/gitlab
restart: always
depends_on:
- boxfish-redis
ports:
- '8080:80'
- '8443:443'
- '8022:22'
volumes:
- /nfs-storage/gitlabnew/data:/home/git/data
- /nfs-storage/gitlabnew/log:/var/log/gitlab
environment:
- REDIS_HOST=boxfish-redis
- REDIS_PORT=6379
- DB_ADAPTER=mysql2
- DB_HOST=192.168.1.245
- DB_NAME=gitlabhq_production
- DB_USER=gitlab
- DB_PASS=password
- DB_PORT=3306
- GITLAB_SSH_PORT=22
- GITLAB_PORT=443
- GITLAB_HTTPS=true
- SSL_SELF_SIGNED=true
- GITLAB_SECRETS_DB_KEY_BASE=kCWxNvhLCqNLqMfnHRqWdF7Mxz4dsz4zdwJhTw3tVw4qJXqkk4zWPLXpVtfXgV
- GITLAB_HOST=gitlab.boxfish.cn
- SMTP_ENABLED=true
- SMTP_DOMAIN=exmail.qq.com
- SMTP_HOST=smtp.exmail.qq.com
- SMTP_PORT=465
- SMTP_TLS=true
- SMTP_AUTHENTICATION=login
- SMTP_USER=git@boxfish.cn
- SMTP_PASS=BWCniBY2zW4KRbQPFAuzcNRypmnqqY
- SMTP_OPENSSL_VERIFY_MODE=none
- GITLAB_EMAIL_REPLY_TO=git@boxfh.cn
- GITLAB_SIGNUP_ENABLED=true
- OAUTH_GITHUB_API_KEY=b4e553629edbf13dac7
- OAUTH_GITHUB_APP_SECRET=6759eda3169f6f1b9711a77bdf99ad8eecf1725
- OAUTH_GITHUB_URL=https://github.com/
- OAUTH_GITHUB_VERIFY_SSL=true
- OAUTH_GITHUB_SCOPE=user:email
```