Hacker News new | ask | show | jobs
by Kovah 1929 days ago
I tested Plausible a few months ago and couldn't get it up and running on my own server. The docs stated that self-hosting was possible but not supported at all. It was a real bummer, hope they worked on this in the last months.
2 comments

How did you try to get it running? They have a docker-compose setup[1] that was super easy to use. It looks to be 5 months old so if you tried before then, good news, it's easy now!

[1] https://github.com/plausible/hosting

I cannot use the docker-compose setup they provide on my server, because it interferes with my existing Docker containers. Settting up the Clickhouse container never worked because Plausible wasn't able to connect properly to it. After researching for hours, I gave up. Not sure what the issues was.
Have you tried putting it into a different user namespace than your current docker containers? https://docs.docker.com/engine/security/userns-remap/
Nope, I just gave up after some hours.
I've been self-hosting Plausible for a few months now, but you're right - there's a bit of fiddling to get everything working. I ended up creating dedicated hosts for the Clickhouse and Postgres databases, and then playing with the connection strings in the Plausible container to connect to them.
I just set it up using the recommended docker machine way and it was like a breeze. You might want to give it another try - that said, it's really cheap, comparable to self hosting