How to access the postgres and clickhouse database in self hosted version #621
Answered
by
ukutaht
Elucidator2197
asked this question in
Self-Hosted Support
-
Want to see the data stored in the databases but unable to find it on amazon ec2 instance with unix platform |
Beta Was this translation helpful? Give feedback.
Answered by
ukutaht
Jan 19, 2021
Replies: 1 comment 2 replies
-
PostgresRun $ docker exec -ti hosting_plausible_db_1 psql -U postgres plausible_db ClickhouseRun Also figure out the name of your docker-compose network with $ 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 --database plausible_events_db
|
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
ukutaht
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Postgres
Run
$ docker ps
to figure out the container name for the Postgres image. In my case it washosting_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 washosting_plausible_db_1
.Also figure out the name of your docker-compose network with
$ docker network ls
. In my case it washosting_default
Then you can connect as follows