GithubHelp home page GithubHelp logo

Comments (9)

Revel8804 avatar Revel8804 commented on June 1, 2024 1

Yes that does work. Thank you for the help.
Now to figure out how to configure gitlab with a none standard port.

from gitlab-docker-letsencrypt.

steevepay avatar steevepay commented on June 1, 2024

Hello @Revel8804,
You have to expose the port 22. Add the following lines inside the docker-compose service gitlab-letsencrypt:

ports:
    - '22:22'

Then restart the container and it should work.

from gitlab-docker-letsencrypt.

Revel8804 avatar Revel8804 commented on June 1, 2024

Sorry you have a bit of a docker newbie here.

Do i add it to this file?
image

If not can you help point me to the correct file.

from gitlab-docker-letsencrypt.

steevepay avatar steevepay commented on June 1, 2024

You have to edit the docker compose on the gitlab-docker-letsencrypt project, the path:
gitlab-docker-letsencrypt/docker-compose.yml
Then on the gitlab-letsencrypt service, add the following lines:

ports:
    - '22:22'

Restart the container with the command line:

docker-compose up --build -d

from gitlab-docker-letsencrypt.

Revel8804 avatar Revel8804 commented on June 1, 2024

Then on the gitlab-letsencrypt service, add the following lines:

Thats the part that i can not figure out where to go to add the lines.

from gitlab-docker-letsencrypt.

steevepay avatar steevepay commented on June 1, 2024

Here is the docker-compose.yml with the change:

version: "3.7"

services:
  gitlab-letsencrypt:
    image: 'gitlab/gitlab-ce:latest'
    container_name: ${CONTAINER_NAME}
    restart: always
    hostname: ${MAIN_DOMAIN}
    volumes:
      - '${GITLAB_DATA_PATH}config:/etc/gitlab'
      - '${GITLAB_DATA_PATH}logs:/var/log/gitlab'
      - '${GITLAB_DATA_PATH}data:/var/opt/gitlab'
    restart: unless-stopped
    env_file:
      - ./.env
    networks:
      - default
    ports:
      - '22:22'

networks:
  default:
    external:
      name: ${NETWORK}

Let me know if it is working

from gitlab-docker-letsencrypt.

Revel8804 avatar Revel8804 commented on June 1, 2024

here is what i am getting now.

image

I am assuming that is because my host is using port 22? I could change the ports on the git to 2222.

from gitlab-docker-letsencrypt.

Revel8804 avatar Revel8804 commented on June 1, 2024

image
It looks like 22 is already on there?

from gitlab-docker-letsencrypt.

steevepay avatar steevepay commented on June 1, 2024

Try to bind the ssh port to another available port, for example:

ports:
   - '8822:22'

Then restart the container. To connect to your GitLab, here is the command line:

ssh [USER]@[SERVER IP] -p 8822

Let me know if it is working

from gitlab-docker-letsencrypt.

Related Issues (7)

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.