Open toolness opened 4 years ago
I agree! I think the default 1100 is mostly set up to work with the setupServer.sh
script
https://github.com/NYCPlanning/labs-geosearch-docker/blob/5b2d889b52c37ce62527b77c500b02b7836ba279/setupServer.sh#L9
We can probably change the setupServer.sh so that it would take the uid from the .env
file
When going through the README instructions, we ran into some file permission errors because containers couldn't write to the
data
directory. This is likely because our uid on our system was1000
, while the one specified in the.env
file asDOCKER_USER
was 1100. We actually just ended up making thedata
anddata/elasticsearch
directories world-writable, but a more secure fix would probably involve adding a section to the README advising the user to setDOCKER_USER
to a value appropriate for their system. Since that would involve editing the version-controlled.env
file, however, it might make sense to rename.env
to.env.sample
and have the user explicitly create their own.env
file.