GitLab docker compose example

From wikieduonline
Revision as of 09:45, 18 April 2021 by Welcome (talk | contribs)
Jump to navigation Jump to search

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


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'


See also

Advertising: