gpodder / mygpo

The gpodder.net webservice
http://gpodder.net/
GNU Affero General Public License v3.0
269 stars 85 forks source link

[Feature request] Docker container for selfhosting #818

Open update-freak opened 1 year ago

update-freak commented 1 year ago

Hi,

it would be nice if you could provide a container for selfhosting gpodder.net in Docker on an Synology NAS. Install with a docker compose in portainer would be great.

atomdmac commented 1 year ago

I would really like this as well. For the client, there's this but it seems to be distinct from gPodder.net (which is what I would actually like to self-host).

auouymous commented 1 year ago

Oh, I misunderstood the request, this is not for the client.

@elelay Can you move this.

atomdmac commented 1 year ago

This is currently incomplete but many of the basics are there:

I haven't tried actually hooking up podcats or devices yet but it's a start.

https://codeberg.org/atomdmac/mygpo-docker

Ryochan7 commented 10 months ago

Not going to register on the other site right now so I will bring up issues here. I wanted to try out mygpo-docker but ran into several issues with the current configuration. A couple of problems are upstream problems with the config in the mygpo repo (transifex-client, gevent); looks like transifex-client only works up to Python 3.9(?) but Debian stable now packages Python 3.11. Other than that, I ran into a few env problems with the Dockerfile and the config in the docker-compose.yml file.

First off, the python3 package as well as python3-pip need to be installed in the container. I ended up linking to my old forked alphagpo repo and changed the source problems I ran into in that code; still would need an image for running the feed parser service. Also, I am not sure why but Docker keeps wanting to make a minimal Python venv in the mygpo-git directory outside of the container. That problem keeps making the shell in the Docker container not find envdir and some other processes because that dir is mounted as a volume.

I still want to work on tweaking things but I am now able to get the web server running and the Django site can be accessed.

Ryochan7 commented 10 months ago

@atomdmac Now I remember why I stopped using Docker. Pain in the butt. Anyway, getting alphagpo-feedservice running was a pain as several Python packages were broken with Python 3.11. It took a little time to learn how networking works in Docker so the mygpo container could communicate with the feedservice container.

I guess I can start by submitting some smaller changes to the repo on Codeberg later.