Skip to content

How to access the postgres and clickhouse database in self hosted version #621

Discussion options

You must be logged in to vote

Postgres

Run $ docker ps to figure out the container name for the Postgres image. In my case it was hosting_plausible_db_1. Then you can connect as follows

$ docker exec -ti hosting_plausible_db_1 psql -U postgres plausible_db

Clickhouse

Run $ docker ps to figure out the container name for the Clickhouse image. In my case it was hosting_plausible_db_1.

Also figure out the name of your docker-compose network with $ docker network ls. In my case it was hosting_default Then you can connect as follows

$ docker pull yandex/clickhouse-client
$ docker run -it --net hosting_default --rm --link hosting_plausible_events_db_1:clickhouse-server yandex/clickhouse-client --host clickhouse-server --data…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@kees-closed
Comment options

@ruslandoga
Comment options

Answer selected by ukutaht
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants