Skip to content

Latest commit

 

History

History
58 lines (50 loc) · 1.89 KB

README.md

File metadata and controls

58 lines (50 loc) · 1.89 KB

gitlab-ce with docker-compose

Build Status


1- Change ssh port via root user (NOT 22) :

bash <(curl -Ls https://gist.github.com/pcmehrdad/2fbc9651a6cff249f0576b784fdadef0/raw)

2- Login as Normal User and clone these repository to your system :

git clone https://github.com/ariadata/dc-gitlab.git && cd dc-gitlab && rm -rf .git

3- edit docker-compose.yml ( lines : 7,10 ) according to your FQDN :

4- Run docker-compose file by using :

docker-compose up -d

5- set root login password for gitlab (** wait atleast 1 minute before these **):

docker exec -it gitlab bash
gitlab-rake "gitlab:password:reset[root]"

6- (optional) change gitlab smtp mail settings , use these commands to save and check:

gitlab-ctl reconfigure
gitlab-rails console
Notify.test_email('[email protected]', 'Message Subject', 'Message Body').deliver_now

7- Goto Nginx-Proxy-Manager admin panel and add this stack as proxy-host :

Domain : Your-FQDN you must pointed it before!

Schema : https

Name or IP : gitlab

Port : 443

Config SSL Part

9- goto : https://Your-FQDN/

Done!

Optionals- Update access_token expire by name:

docker exec -it gitlab bash
# add extra 10 years
gitlab-rails r "PersonalAccessToken.active.where(name: 'token_name').update_all(expires_at: 10.year.from_now)"