Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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('you@example.com', '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)"

About

gitlab-ce with docker-compose via nginx-proxy-manager

Topics

Resources

Stars

Watchers

Forks

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.