I’m trying to use this docker image to set up a pod on my server, which is running Ubuntu 20.04.
I’m not completely understanding the requirements, even after reading the installation instructions on the wiki.
First of all, does diaspora* require either PostgreSQL or Redis, or both PostgreSQL and Redis?
Secondly, it seems that the database(s) are to be configured on the host, not inside the docker container, which makes sense because we want that data to persist beyond the life of the container. However I’m not seeing how the process inside the container can access the database on the host.
The only port that seem to be exposed in or out of the container is the application port on 3000. So if you use
localhost to access Redis, I can’t see how that won’t get stuck trying to talk to something inside the container. I don’t see anything at all that tells the process where to find PostgreSQL, only username / password. That won’t be too helpful if you don’t know where to connect.
I see several volumes related to pgsql data being mounted, but I don’t understand what that data is. I thought that the database was written to over a socket, not direct file access. And even if that’s true, it seems like I would want my database to be in a more general location so I could use it for other services too.
Finally, in general, I’m new to hosting databases. The link to setting it up on the wiki is dead. Does anyone have an updated guide? Maybe that gap in knowledge is causing all of the confusion above.