Difference between revisions of "GitLab docker compose example"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Tags: Mobile web edit, Mobile edit
Line 2: Line 2:
  
  
<pre>
+
 
web:
+
web:
  image: 'gitlab/gitlab-ce:latest'
+
  image: 'gitlab/gitlab-ce:latest'
  restart: always
+
  restart: always
  hostname: 'gitlab.example.com'
+
  hostname: 'gitlab.example.com'
  environment:
+
  environment:
    GITLAB_OMNIBUS_CONFIG: |
+
    GITLAB_OMNIBUS_CONFIG: |
      external_url 'https://gitlab.example.com'
+
      external_url 'https://gitlab.example.com'
  ports:
+
  ports:
    - '80:80'
+
    - '80:80'
    - '443:443'
+
    - '443:443'
    - '22:22'
+
    - '22:22'
  volumes:
+
  [[volumes:]]
    - '/srv/gitlab/config:/etc/gitlab'
+
    - '/srv/gitlab/config:/etc/gitlab'
    - '/srv/gitlab/logs:/var/log/gitlab'
+
    - '/srv/gitlab/logs:/var/log/gitlab'
    - '/srv/gitlab/data:/var/opt/gitlab'
+
    - '/srv/gitlab/data:/var/opt/gitlab'
</pre>
+
 
  
  

Revision as of 09:46, 18 April 2021

Advertising: