sameersbn / sameersbn/docker-gitlab

Get log-files from docker-container to host

Open
#347 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

wontfix
Dominant language
Shell
Stars
8.1k
Forks
2.1k
Avg merge
17h 47m
Merged PRs (30d)
7

Description

Hello there. I currently have a pretty huge problem I have no idea how to solve.

So as of right now, I am trying to get the logs contained in /home/git/gitlab/log to be on my host-system as well. I have tried configuring the docker-compose.yml the following:

under "volumes" I have added:

  • /srv/docker/gitlab/gitlab/log:/home/git/gitlab/log

And upon start and doing some stuff like adding Projects, log files are in the docker container but not in my host system. This should work according to docker documentation, or am I doing something wrong?

Also I have completely removed gitlab, modified docker-compose file and then re-created everything from scratch and it still didn't work.

Would someone know what I am doing wrong here?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the docker-compose.yml volume mapping described in the issue and inspect the container path /home/git/gitlab/log. Reproduce the setup, check the mounted host directory /srv/docker/gitlab/gitlab/log, and verify that GitLab log files created in the container appear there.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker
Domain
devops, infrastructure
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.