Hacker News new | ask | show | jobs
by teekert 1613 days ago
Nice, I did this too. It's brilliant as backend for my iPhone, except that they are not putting imagemagick into the docker image and so your .heic pictures have no thumbnails and you can't view them. Still looking for solution to that.

One thing, you don't have to expose that mariadb port, all services in a docker-compose file are on the same network unless otherwise specified (and you can address them by their container name, build-in DNS!) :)

Oh and you can super-power it by Using Traefik for https, you just need to add some stuff to your docker-compose.yaml file. Although OP mentions a reverse proxy already, outside of this compose file.

I wrote a bit about this too with more detail, but I'm too afraid that HN will smash my poor Corei3 server :p. I want to get all of it on GitHub at some point, and then share it.

4 comments

Hi Teekert! Thank you for your feedback; I will 'unexpose' the mariadb port in this example. That is one less service open for exploiting! :)

I now about Traefik, but I use the Synology reverse proxy at the moment. I felt that it is not fair to include it in this blogpost, since it is not an open source solution and not truely in the spirit of selfhosting. I plan to make the switch in the future to another reverse proxy like Traefik, Caddy or maybe just Nginx, not sure yet.

Could you give me the link to the blogpost? I might link to it :) Quality conten t must be shared and I think we as selfhosters should make it as approachable as possible for newcomers.

Actually Traefik is open source (right?): [0]

I really have to think about the post and update it, perhaps I'll get back to you and put it on a vps, not on "the hub of my digital life", before I share it.

Actually almost everything I learned and use I heard about on the Self-hosted podcast [1], and on one of the host's GitHub repos [2] (who takes personal infra as code to the next level).

[0]: https://github.com/traefik/traefik/blob/master/LICENSE.md

[1]: https://selfhosted.show/

[2]: https://github.com/IronicBadger

Thank you for sharing! Feel free to reach out to me, so we could share some thoughts. I am always open for learning new things :)
That podcast and its community on Discord are really very excellent.
I posted a full docker-compose traefik example here if it helps.

https://markfrancis.io/post/2021-04-20-bitwarden-docker-comp...

Nice! You still need to change the image to vaultwarden though :)

https://github.com/dani-garcia/vaultwarden/discussions/1642

This is probably the reason why it ain't included: https://github.com/nextcloud/server/issues/13099
Yeah, I know, frustrating because I just use it for the family, I don't think they will be uploading malicious SVGs. If I wouldn't use the container, it would be quite easy to install it myself.
As a note for anyone interested in doing this, imagemagick by default doesn't support heic, you need to build it from scratch yourself for it to work (at least I needed to on ubuntu 20.04) literally did it yesterday for a little sideproject:

https://github.com/matthewaveryusa/tesseract_dockerfile/blob...

Yep I'm using Traefik as a proxy for multiple docker containers. Guacamole, pihole, grafana, nextcloud, portainer. Admittedly, I'm not using nextcloud for anything but testing my pixel with CalyxOS right now.