Open link in a new tab

Content

Expand project menu

OpenProject Docker data on Windows

Hi all.

I am currently playing around with OpenProject. I found the Docker container and thought this might be one of the easiest ways to  test it out. I can get the container to run, yet I have not found a way to make my changes stick.

The existing documentation seems to be for linux and states i should:

sudo mkdir -p /var/lib/openproject/{pgdata,logs,static}

docker run -d -p 8080:80 --name openproject -e SECRET_KEY_BASE=secret \
  -v /var/lib/openproject/pgdata:/var/lib/postgresql/9.6/main \
  -v /var/lib/openproject/logs:/var/log/supervisor \
  -v /var/lib/openproject/static:/var/db/openproject \
  openproject/community:8

I assume that I need to change at least the paths so I tried:

docker run -d -p 8080:80 --name openproject -e SECRET_KEY_BASE=secret \ -v d:/temp/docker/pgdata:/var/lib/postgresql/9.6/main \ -v d:/temp/docker/logs:/var/log/supervisor \ -v d:/temp/docker/static:/var/db/openproject \ openproject/community:8

No joy. All i get is an "invalid reference format" error and I can't figure out why. Can anyone offer some insight as to what's wrong and how to make changes stick with Docker?

Any and all help greatly appreciated.

Message actions

did you found how to do it in windows?

Message actions

I figured out to remove the "\" chars.

docker run -it -p 8080:80 --name openproject -e SECRET_KEY_BASE=secret -v c:/temp/docker/openprojectTest/pgdata:/var/lib/postgr esql/9.6/main -v c:/temp/docker/openprojectTest/logs:/var/log/supervisor -v c:/temp/docker/static:/var/db/openproject openpr oject/community:8

After starting the container in my windows file system in directory "pgdata/" lot of file are created. Perfect!

But the container do not start and failed with the following error message:

 Starting PostgreSQL 9.6 database server: mainError: Config owner (postgres:102) and data owner (root:0) do not match, and config owner is not root ... failed!
        failed!
Message actions

i have the same error message and haven't found a solution yet :(

Message actions

Hi

Yes dear Mr. & Ms. Openproject

Pls be so kind and pulish the comands for Docker Desktop for Windows to get a persistant container running.

And how to access it from internet for other users.

Hope for Help!

THX

Message actions

Any update on this issues?