mirror of
https://github.com/plausible/analytics.git
synced 2024-12-26 02:55:02 +03:00
Change Docker volume used by Clickhouse to a local directory (#404)
Previously it would pollute the users home directory
This commit is contained in:
parent
3ff2c79b33
commit
f7885a93d7
3
.gitignore
vendored
3
.gitignore
vendored
@ -25,6 +25,9 @@ plausible-*.tar
|
||||
# If NPM crashes, it generates a log, let's ignore it too.
|
||||
npm-debug.log
|
||||
|
||||
# If running Clickhouse through the Makefile, its data is written here
|
||||
/.clickhouse_db_vol/
|
||||
|
||||
# The directory NPM downloads your dependencies sources to.
|
||||
/assets/node_modules/
|
||||
/tracker/node_modules/
|
||||
|
2
Makefile
2
Makefile
@ -1,5 +1,5 @@
|
||||
clickhouse:
|
||||
docker run --detach -p 8123:8123 --ulimit nofile=262144:262144 --volume=$$HOME/clickhouse_db_vol:/var/lib/clickhouse yandex/clickhouse-server
|
||||
docker run --detach -p 8123:8123 --ulimit nofile=262144:262144 --volume=$$PWD/.clickhouse_db_vol:/var/lib/clickhouse yandex/clickhouse-server
|
||||
|
||||
postgres:
|
||||
docker run --detach -e POSTGRES_PASSWORD="postgres" -p 5432:5432 postgres
|
||||
|
Loading…
Reference in New Issue
Block a user