Browse Source

gitlab ssh port

Guilhem Saurel 7 years ago
parent
commit
54dcad3bda
1 changed files with 4 additions and 1 deletions
  1. 4 1
      gitlab/docker-compose.yml

+ 4 - 1
gitlab/docker-compose.yml

@@ -5,7 +5,9 @@ services:
     image: gitlab/gitlab-ce
     hostname: 'git.aen.im'
     environment:
-      - GITLAB_OMNIBUS_CONFIG="external_url https://git.aen.im"
+      - GITLAB_OMNIBUS_CONFIG |
+        external_url 'https://git.aen.im'
+        gitlab_rails['gitlab_shell_ssh_port'] = 2222
     volumes:
       - /srv/gitlab/app/config:/etc/gitlab
       - /srv/gitlab/app/logs:/var/log/gitlab
@@ -13,3 +15,4 @@ services:
     restart: always
     ports:
       - "127.0.0.1:9002:80"
+      - "127.0.0.1:2222:22"