everything is working, the uid/gid are correct and I can login, etc.
Then, if I stop this container and execute docker-compose up again, everything is working.
I tried different external volumes (local and network directories), but I get the same results.
So, I think I am missing something, in the docker-compose configuration because with the same env, docker-compose not works while docker run works.
EDIT1
Some additional/summary tests.
If the external volume is owned by a different UID than the user executing docker-compose or specificed in the env file, before executing docker-compose up the problem occur even if the external volume is rw
doing chown after docker-compose up, changes the ownership but still resulting in 404 page so I guess that some data is not create correctly during the first docker-compose up, or more-likely docker-compose up re-change the ownership to root (verified with ls -ll pre and post docker-compose up)
using docker run with or without specificing UID/GID, and with or without doing chown does change the ownership of the external volume with the UID of the user who executed docker run.
Creating a user with the same UID of the external volume and executin docker-compose up, does work.
Steps to reproduce the issue
Create simple docker-compose.yaml and .env with external volumes (see above)
Create docker volume
Docker-compose up
Check localhost:8080/geoserver/web - > Get 404 error
Check UID/GID in the mounted volume folder -> all assigned to root
What is the bug or the crash?
Hi all, first of all thanks for this amazing repo!
I am trying to integrate geoserver prebuilt image in the following docker-compose:
my .env
When I execute docker-compose up, it seems to run fine, but I only get a 404 page with geoserver/web folder not found.
Checking the mounted volume, the files are there but the uid/gid are 1000 (root) instead of those specificed in the env.
Manually chowning with the correct uid/gid (after docker-compose down) results with the same 404 page.
Using an internal volume works.
If i run simple docker run with the same env variables:
everything is working, the uid/gid are correct and I can login, etc.
Then, if I stop this container and execute docker-compose up again, everything is working.
I tried different external volumes (local and network directories), but I get the same results.
So, I think I am missing something, in the docker-compose configuration because with the same env, docker-compose not works while docker run works.
EDIT1
Some additional/summary tests.
Steps to reproduce the issue
Versions
2.23.0
Additional context
I want to use docker-compose with prebuilt images since I am integrating it with other services and I wanted to keep as "standard" as possible