QNAP NAS Docker GIT Lab환경설정

QNAP NAS에GITLAB을 설치 한후 URL을 관리하기 하는 방법을 찾기가 어려워 요약 해둔다.
환경설정은 좀 어렵다. 어디에도 설명이 잘 되어 있지 않다. 가장 쉬운방법은 내장된 UI에서 사용하는 방법이다 .

클릭 하여 내용을 곧바로 적용 할 수 있다.
그외의 방법들은 매우번거롭고 QNAP의 설명 또는 구글링에서 찾은 설명과 다르게 파일의 위치도 찾기가 힘들다

이방법은 QNAP Docker에 존재하지도 않는 “/home/git/gitlab/lib/gitlab.rb”을 찾을 필요도 없고
“/share/containers/container-station-data/application/gitlab/docker-compose.yml”을 직접 찾지 않고 내용을 수정하는 효과적인 방법이다

이방법을 알기전에 구글링 해서 비슷한 유형의 문제들을 찾아 봤지만 만족할 만한 결과를 찾지 못했다.

다른사례의 경우 — 해결 되었지만 복잡하다

QNAP NAS Community Forum
Skip to content
FAQLoginRegister
HomeBoard indexOfficial AppsContainer Station
How to set external URL in GitLab container?
6 posts • Page 1 of 1
dtecta
New here
I installed GitLab as a container on my TS-453 Pro and would like to set the external URL for my box as the default “localhost” is not very useful. I learned from the online documentation that I need to set external_url = ‘mydomain.com’ in gitlab.rb. I found “/home/git/gitlab/lib/gitlab.rb” (should be “/etc/gitlab/gitlab.rb” according to the documentation but let’s not mind that), and added the external URL. Now I need to reconfigure using gitlab-ctl reconfigure The problem is that there is no command gitlab-ctl in this container. What am I missing? Gino Top ozan1 New here Posts: 5 Joined: Sat Feb 01, 2014 4:54 am Re: How to set external URL in GitLab container? Post by ozan1 » Thu Dec 08, 2016 7:36 pm

I need the same info. Tried adding the GITLAB_HOST docker-compose.yml but did not work. Top kesozjura First post Posts: 1 Joined: Sat Nov 21, 2015 2:15 am Re: How to set external URL in GitLab container? Post by kesozjura » Sat Dec 10, 2016 7:48 pm

I need the same for configuring gitlab CI. Top nezar First post Posts: 1 Joined: Mon May 19, 2008 10:03 pm Re: How to set external URL in GitLab container? Post by nezar » Sat Feb 11, 2017 8:12 am

I managed to do that using the following: 1- edit the file /share/containers/container-station-data/application/gitlab/docker-compose.yml environment: 2- add the following under gitlab: GITLAB_HOST: yourhostname 3- run the following from the command line docker-compose stop docker-compose up -d Top K0ertis New here Posts: 5 Joined: Sat May 06, 2017 10:39 pm Re: How to set external URL in GitLab container? Post by K0ertis » Fri Nov 30, 2018 1:15 am

Hi! I do really struggle with this stuff and I can not get it to work: I bought the SSL from Qnap and would like to use the containers with that. I have in the docker-compose.yml file: gitlab: environment: DEBUG: ‘false’ GITLAB_PORT: 10443 GITLAB_HTTPS: ‘true’ GITLAB_HOST: ‘mydomain.myqnapcloud.com’ SSL_SELF_SIGNED: ‘false’ GITLAB_RELATIVE_URL_ROOT: ‘/git’ GITLAB_SECRETS_DB_KEY_BASE: qcs-gitlab-app GITLAB_SECRETS_OTP_KEY_BASE: qcs-gitlab-app GITLAB_SECRETS_SECRET_KEY_BASE: qcs-gitlab-app GITLAB_SSH_PORT: 10022 image: sameersbn/gitlab:latest links: – redis:redisio – postgresql:postgresql ports: – 10080:80 – ‘10022:22’ restart: always postgresql: environment: DB_EXTENSION: pg_trgm DB_NAME: gitlabhq_production DB_PASS: password DB_USER: gitlab image: sameersbn/postgresql:10 restart: always redis: command: – –loglevel warning image: sameersbn/redis:latest restart: always “` Could you give me a hint what I do wrong? Top whyend1119 First post Posts: 1 Joined: Sun May 21, 2017 1:21 pm Re: How to set external URL in GitLab container? Post by whyend1119 » Fri Feb 22, 2019 11:45 am

It’s been a long time, hope this can be some help still. ssh login to the nas using admin docker ps to find the docker ID of gitlab docker exec -it gitlab-docker-id bash now you are in the docker vi /etc/docker-gitlab/runtime/env-defaults in the ## GITLAB CORE section, find & change GITLAB_HOST=${GITLAB_HOST:-localhost} to GITLAB_HOST=${GITLAB_HOST:-your_external_url} restart the docker(or app package) then take your own risk and good luck! Top 6 posts • Page 1 of 1 Return to “Container Station” HomeBoard indexAll times are UTC+08:00Delete cookiesContact us Powered by phpBB® Forum Software © phpBB Limited

“QNAP NAS Docker GIT Lab환경설정”의 5개의 댓글

  1. I and also my buddies ended up examining the nice tips and tricks on the blog and at once I got a horrible feeling I never thanked the web blog owner for those tips. All of the young boys had been consequently passionate to read through all of them and have clearly been using those things. Appreciate your simply being really kind and then for pick out such incredible ideas most people are really needing to be aware of. My very own honest apologies for not saying thanks to sooner.

  2. I simply wanted to make a small remark in order to thank you for those superb items you are showing here. My prolonged internet lookup has at the end of the day been paid with incredibly good know-how to share with my visitors. I ‘d repeat that we readers are very endowed to dwell in a magnificent website with very many wonderful individuals with interesting plans. I feel extremely fortunate to have come across your web page and look forward to some more exciting times reading here. Thanks a lot once more for everything.

  3. I have to express my appreciation to the writer for bailing me out of this circumstance. Because of scouting throughout the online world and finding thoughts which are not beneficial, I assumed my entire life was done. Being alive minus the approaches to the issues you’ve solved all through the guide is a serious case, as well as those that could have negatively damaged my entire career if I hadn’t come across your web page. Your personal natural talent and kindness in touching every item was valuable. I’m not sure what I would’ve done if I hadn’t come across such a thing like this. I can at this time look forward to my future. Thanks a lot very much for your high quality and sensible guide. I won’t be reluctant to suggest your web sites to any individual who will need recommendations on this area.

  4. I must show some thanks to the writer for rescuing me from this scenario. After browsing through the world wide web and seeing concepts that were not beneficial, I figured my life was well over. Being alive without the presence of approaches to the issues you’ve fixed by means of your main guideline is a critical case, as well as the ones that could have in a wrong way affected my career if I had not encountered your web blog. The ability and kindness in playing with all the stuff was priceless. I am not sure what I would’ve done if I hadn’t come across such a step like this. I can also now look forward to my future. Thank you so much for this reliable and effective guide. I will not be reluctant to refer the website to any individual who ought to have tips on this matter.

  5. I am just writing to make you be aware of of the excellent encounter my friend’s princess encountered using your site. She came to find some things, most notably what it is like to have an amazing giving mindset to make men and women without problems fully grasp selected multifaceted things. You really surpassed her desires. Thanks for showing the warm and helpful, trustworthy, informative and cool guidance on your topic to Ethel.

댓글 남기기