-
Notifications
You must be signed in to change notification settings - Fork 57
Support --socket-dir
command line argument
#126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I attempted to use a volume mount for the database and store the socket file on the container. Everything seems to be functioning. |
@BrendenKingTLG If you are using a normal volume mount on your local filesystem then it will work fine. I ran into issues when I mounted a directory over NFS and used that as my volume mount, but sockets don't work with NFS (understandably) |
I use a similar setup with AWS EFS. To avoid issues with socket files being shared across instances, I moved the socket file from the DB volume to a path inside the container. Step 1: Set
|
The dispatcher server accepts a
--socket-dir
command line argument to let the user customize the location of the unix domain sockets that are created. The dispatcher client already listens toOVERPASS_SOCKET_DIR
, so it would be great ifdispatcher_start.sh
added the appropriate--socket-dir
parameter ifOVERPASS_SOCKET_DIR
is set. I think some additional work would need to be done for thedispatcher_areas
supervisord job and here in the entrypoint.By default, Overpass stores the domain sockets in the database directory, but this can cause problems if the directory is a network share or otherwise does not support unix domain sockets, so specifying a separate directory for those is required.
Thank you for this Docker image!
The text was updated successfully, but these errors were encountered: