Change Docker volume used by Clickhouse to a local directory (#404)

Previously it would pollute the users home directory
This commit is contained in:
Johan Fagerberg 2020-11-10 12:49:50 +01:00 committed by GitHub
parent 3ff2c79b33
commit f7885a93d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

3
.gitignore vendored
View File

@ -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/

View File

@ -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