docker-compose-gitlab-ce icon indicating copy to clipboard operation
docker-compose-gitlab-ce copied to clipboard

postgresql start fail

Open zgfh opened this issue 6 years ago • 4 comments

logs:


initdb: directory "/var/lib/postgresql/data" exists but is not empty
It contains a dot-prefixed/invisible file, perhaps due to it being a mount point.
Using a mount point directly as the data directory is not recommended.
Create a subdirectory under the mount point.
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.

The database cluster will be initialized with locale "en_US.utf8".
The default database encoding has accordingly been set to "UTF8".
The default text search configuration will be set to "english".

Data page checksums are disabled.

initdb: directory "/var/lib/postgresql/data" exists but is not empty
It contains a dot-prefixed/invisible file, perhaps due to it being a mount point.
Using a mount point directly as the data directory is not recommended.
Create a subdirectory under the mount point.

when i remove volumes/postgres/.gitkeep,it work

zgfh avatar Aug 16 '19 10:08 zgfh

Did you figure this out? I'm getting lots of different errors when building this - and they don't seem to be solved anywhere. Even more frustrating, none of the gitlab threads with the same errors have solutions... This seems really messy.

dm17 avatar Aug 31 '19 19:08 dm17

You can remove volumes/*.

wmariuss avatar Dec 19 '19 15:12 wmariuss

I've given up on GitLab... They don't even have version numbers for docker-compose in their documentation... And they run chef in docker... It all just doesn't feel professional.

dm17 avatar Dec 19 '19 15:12 dm17

Actually not :). They are not using chef for this. https://hub.docker.com/r/gitlab/gitlab-ce/dockerfile/ In docker compose file you can specify the tag name with the version you want. All versions available: https://hub.docker.com/r/gitlab/gitlab-ce/tags And yes, using another tool to deploy in docker does not seems to be a professional way.

wmariuss avatar Dec 19 '19 15:12 wmariuss