sameersbn / sameersbn/docker-gitlab
GitLab fails to start due to postgressql permissions if I use extends
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 8.1k
- Forks
- 2.1k
- Avg merge
- 17h 47m
- Merged PRs (30d)
- 7
Description
I have a complicated docker-compose setup of which gitlab is only one part.
I had originally set up my compose files so that I have a top-level docker-compose.yml and then separate compose files for each of my containers, accessed via extends, e.g.:
services
...
gitlab
extends:
file: gitlab-dfst/docker-compose.yml
service: gitlab-dfst
depends_on:
- redis
- postgresql
...
The gitlab-dfst/docker-compose.xml then has all the configuration except the depends and volumes stanzas.
When I start this, gitlab startup fails with a message about insufficient permissions to configure the pg_trgm feature of postgressql and it goes into a restart loop.
If I move the same compose statements from the separate file to the main docker-compose file then gitlab startup works fine.
My question: Why does using extends cause this failure? Is there some user error in this case or is this simply a configuration that won't work?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Compare the top-level docker-compose.yml with gitlab-dfst/docker-compose.xml, focusing on the service definition assembled through extends and the omitted depends_on and volumes sections. Reproduce the startup failure and inspect the PostgreSQL pg_trgm permission message. Done means determining whether the failure is caused by the compose configuration or whether this use of extends is unsupported.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker-compose
- Domain
- devops, infrastructure
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100