Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #9993

Closed
Open
Created Jan 20, 2016 by Administrator@rootOwner

Gitlab docker does not store data on mounted volumes

Created by: maxa4e

Using below config according to the documentation http://doc.gitlab.com/omnibus/docker/ One would expect according to the docs that;

/srv/gitlab/data mounted as /var/opt/gitlab in the container is used for storing application data
/srv/gitlab/logs mounted as /var/log/gitlab in the container is used for storing logs
/srv/gitlab/config mounted as /etc/gitlab in the container is used for storing configuration

Would store the data, this is not working. The volumes on the host OS are empty and the /var/log/gitlab folders inside the docker container are non existant. Is the documentation out of date? How to store all gitlab data outside the docker container in a persistant way on the host os?

docker run --detach \
--hostname gitlab.ourhost.com \
--publish 443:443 --publish 80:80 --publish 222:222 \
--name gitlab \
--restart always \
--volume /srv/gitlab/config:/etc/gitlab \
--volume /srv/gitlab/logs:/var/log/gitlab \
--volume /srv/gitlab/data:/var/opt/gitlab \
--env GITLAB_OMNIBUS_CONFIG=" external_url 'https://gitlab.ourhost.com/'; gitlab_rails['lfs_enabled'] = true; nginx['redirect_http_to_https'] = true;" \
gitlab/gitlab-ce:latest
Assignee
Assign to
Time tracking