ben-xo / dir2cast

Turn a directory of MP3s into a podcast - automatically.
http://www.ben-xo.com/dir2cast
BSD 3-Clause "New" or "Revised" License
152 stars 20 forks source link

any Dockerfile to share for dir2cast ? #53

Closed karawitan closed 2 years ago

karawitan commented 2 years ago

Hello, anyone would share a Dockerfile implementing a dir2cast instance on nginx ?

ToddAGoodman commented 2 years ago

I would be interested in a Docker setup as well.

ben-xo commented 2 years ago

Hi! @karawitan @ToddAGoodman I can easily make one. How would you expect it to behave? I'm asking as there are several ways I could approach this and I'd like to know what your expectations are / how you imagine it going when you do docker run etc. Looking forward to hearing back from you.

karawitan commented 2 years ago

Hi @ben-xo , One way to call the dir2cast container might be:

docker run -v /home/user/music:/www/music -p 80:80 benxo/dir2cast

That would export via http on port 80 the data below /home/user/music :)

ben-xo commented 2 years ago

Hi @ben-xo , One way to call the dir2cast container might be:

docker run -v /home/user/music:/www/music -p 80:80 benxo/dir2cast

That would export via http on port 80 the data below /home/user/music :)

Yes that seems reasonable. Basing it off php-fpm is probably the right way to do it, I'll look into that soon

ToddAGoodman commented 2 years ago

I would agree this would make a lot of sense and me easy to execute. Keep features for me would be a container that allows me to deploy audiobooks in different directories each with its own RSS feed.

Also it would be nice too deploy via docker compose as well

ben-xo commented 2 years ago

So, the simplest way to do this is to use the official PHP apache docker image.

See https://hub.docker.com/_/php?tab=description&page=1&name=apache "Apache with a Dockerfile" instructions.

Rename dir2cast.php to index.php if you want it to be the default page.

ben-xo commented 2 years ago

I have opened a PR with an example docker-compose. Want to try it out?

https://github.com/ben-xo/dir2cast/pull/54/files

ben-xo commented 2 years ago

This has now been merged, thank you for your help testing!