Comments (9)
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.
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.
Sorry you have a bit of a docker newbie here.
If not can you help point me to the correct file.
from gitlab-docker-letsencrypt.
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.
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.
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.
here is what i am getting now.
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.
It looks like 22 is already on there?
from gitlab-docker-letsencrypt.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gitlab-docker-letsencrypt.