Difference between revisions of "GitLab docker compose example"

From wikieduonline
Jump to navigation Jump to search
Line 38: Line 38:
 
     - '/srv/gitlab/logs:/var/log/gitlab'
 
     - '/srv/gitlab/logs:/var/log/gitlab'
 
     - '/srv/gitlab/data:/var/opt/gitlab'
 
     - '/srv/gitlab/data:/var/opt/gitlab'
 
  
 
  [[docker-compose up -d]]
 
  [[docker-compose up -d]]
Line 44: Line 43:
  
 
== Related terms ==
 
== Related terms ==
*<code>   image: 'gitlab/[[gitlab-ee]]:latest'</code>
+
* <code>image: 'gitlab/[[gitlab-ee]]:latest'</code>
  
  

Revision as of 19:55, 4 July 2022

https://docs.gitlab.com/omnibus/docker/

version: '3.6'
services:
 web:
   image: 'gitlab/gitlab-ee:latest'
   restart: always
   hostname: 'gitlab.example.com'
   environment:
     GITLAB_OMNIBUS_CONFIG: |
       external_url 'https://gitlab.example.com'
       # Add any other gitlab.rb configuration here, each on its own line
   ports:
     - '80:80'
     - '443:443'
     - '22:22'
   volumes:
     - '$GITLAB_HOME/config:/etc/gitlab'
     - '$GITLAB_HOME/logs:/var/log/gitlab'
     - '$GITLAB_HOME/data:/var/opt/gitlab'
   shm_size: '256m'


web:
  image: 'gitlab/gitlab-ce:latest'
  restart: always
  hostname: 'gitlab.example.com'
  environment:
    GITLAB_OMNIBUS_CONFIG: |
      external_url 'https://gitlab.example.com'
  ports:
    - '80:80'
    - '443:443'
    - '22:22'
  volumes:
    - '/srv/gitlab/config:/etc/gitlab'
    - '/srv/gitlab/logs:/var/log/gitlab'
    - '/srv/gitlab/data:/var/opt/gitlab'
docker-compose up -d


Related terms


See also

Advertising: