Giter Club home page Giter Club logo

Comments (3)

kschmid avatar kschmid commented on July 20, 2024

I should clarify why this is still an issue: some elements like issues still have URLs that contain the bogus domain element. As a result: clicking on an issue for modifying it, does not work. Instead one has to click (error page result) and then manually edit the URL to go back to the correct server. (I suppose there are similar problems with other parts beyond the issue tracker, but I have not fully tested.)

Any idea of what to change would be appreciated.

from synology-gitlab-ce.

jboxberger avatar jboxberger commented on July 20, 2024

Thank you for the info, and again sorry for my late reply. I have no solution for that. If you change the external_url with Port (as you need on synology) the container fails to boot because this fail internaly. If you change the external_url without port, then the links are technicaly correct but without the port you end up in the DSM. We need somehow to tell the Webserver inside the docker to run under another port (30080), but the the docker port-mapping 30080:80 will fail.... this is a tricky one. I think this is a GitLab Bug, since other URLs are working fine without this setting.

This IS NOT THE SOLUTION, i was playing around with this but got no luck!

# enter container
sudo docker exec -it "synology-gitlab-ce" bash 

vi /etc/gitlab/gitlab.rb

# search for external_url and modify to your needs <port is optional> (NO EQUAL SIGN!!!)
# you need the port and the ending backslash
# between external_url and tha value is NO EQUAL SIGN!
# see this example:
external_url 'http://xpenology7:30080/'

# reconfig and restart
gitlab-ctl reconfigure
gitlab-ctl restart

from synology-gitlab-ce.

kschmid avatar kschmid commented on July 20, 2024

In the meantime, I completely remade the installation and as part of it, I figured it out. (Sorry, should of posted, but thought, project was abandoned.)
Here is the docker compose, I am using now. The GITLAB_OMNIBUS_CONFIG is the culprit, it seams. (At least, this is what my notes say ,-) )
The gitlab.xx is the url without port.

version: '3.6'
services:
  web:
    image: 'gitlab/gitlab-ce:latest'
    restart: always
    hostname: 'gitlab.xx'
    environment:
      GITLAB_OMNIBUS_CONFIG: |
        external_url 'https://gitlab.xx'
        # Add any other gitlab.rb configuration here, each on its own line
    ports:
      - '80:20080'
      - '443:20443'
      - '22:20022'
    volumes:
      - '/volume1/docker/gitlab-ce/config:/etc/gitlab'
      - '/volume1/docker/gitlab-ce/logs:/var/log/gitlab'
      - '/volume1/docker/gitlab-ce/data:/var/opt/gitlab'
    shm_size: '256m'

from synology-gitlab-ce.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.