Docker official gitlab-ce container

Hi,

I was trying out the GitLab-CE docker container with the command that is described at; http://docs.gitlab.com/omnibus/docker/
Now there seems to occor a problem for me when I try to access the container when it is running about 2 minutes. I assume it is an issue with PostgreSQL due to these log entries;
FATAL: data directory "/var/opt/gitlab/postgresql/data" has group or world access DETAIL: Permissions should be u=rwx (0700).

The thing is that is have tried setting the folder rights to 0700 but that does not seem to help. Actually the folder is created by the Container which made me assume that the rights on the folder would be alright.

I’ve booted the container with this command;
docker run -d --name gitlab-ce \ -p 443:443 -p 80:80 -p 22:22 \ -v /media/config:/etc/gitlab \ -v /media/logs:/var/log/gitlab \ -v /media/data:/var/opt/gitlab \ gitlab/gitlab-ce:latest

Am I doing something wrong with booting up the container or is there something lacking in the documentation (or something that I fail to see.)

Side note on where the container is running on;

  • Ubuntu Server 16.04 LTS
  • The folders in /media/ are mounted from my NAS, since I do wish to keep the data persistent and automatically backed up.
    So far this configuration has not caused any problems with programs like nginx, postrgres etc.

Any help would be greatly appreciated!