Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the command to run on different ports #51

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion doc/docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,8 @@ GitLab will occupy by default the following ports inside the container:
> **Note:**
The format for publishing ports is `hostPort:containerPort`. Read more in
Docker's documentation about [exposing incoming ports][docker-ports].
For the web interface, `containerPort` in the `docker run` command should
be the same with the port in `external_url`.

> **Warning:**
Do NOT use port `8080` otherwise there will be conflicts. This port is already
Expand All @@ -262,7 +264,7 @@ port `2289`, use the following `docker run` command:
```bash
sudo docker run --detach \
--hostname gitlab.example.com \
--publish 8929:80 --publish 2289:22 \
--publish 8929:8929 --publish 2289:22 \
--name gitlab \
--restart always \
--volume /srv/gitlab/config:/etc/gitlab \
Expand Down Expand Up @@ -299,6 +301,7 @@ web browser under `<hostIP>:8929` and push using SSH under the port `2289`.
A `docker-compose.yml` example that uses different ports can be found in the
[docker-compose](#install-gitlab-using-docker-compose) section.


## Diagnose potential problems

Read container logs:
Expand Down