2022-09-27 17:58:22 +03:00
|
|
|
.PHONY: install server clickhouse clickhouse-arm clickhouse-stop postgres postgres-stop
|
2022-07-06 17:47:31 +03:00
|
|
|
|
2021-06-15 10:34:43 +03:00
|
|
|
install:
|
|
|
|
mix deps.get
|
|
|
|
mix ecto.create
|
|
|
|
mix ecto.migrate
|
2022-07-06 17:47:31 +03:00
|
|
|
mix download_country_database
|
2021-09-16 11:05:43 +03:00
|
|
|
npm install --prefix assets
|
2022-10-11 15:24:26 +03:00
|
|
|
npm install --prefix tracker
|
2021-06-15 10:34:43 +03:00
|
|
|
|
|
|
|
server:
|
|
|
|
mix phx.server
|
|
|
|
|
2020-11-05 14:43:24 +03:00
|
|
|
clickhouse:
|
2022-09-06 09:56:22 +03:00
|
|
|
docker run --detach -p 8123:8123 --ulimit nofile=262144:262144 --volume=$$PWD/.clickhouse_db_vol:/var/lib/clickhouse --name plausible_clickhouse clickhouse/clickhouse-server:21.11.3.6
|
2021-05-19 16:49:39 +03:00
|
|
|
|
2022-04-27 21:52:12 +03:00
|
|
|
clickhouse-arm:
|
|
|
|
docker run --detach -p 8123:8123 --ulimit nofile=262144:262144 --volume=$$PWD/.clickhouse_db_vol:/var/lib/clickhouse --name plausible_clickhouse altinity/clickhouse-server:21.12.3.32.altinitydev.arm
|
|
|
|
|
2021-05-19 16:49:39 +03:00
|
|
|
clickhouse-stop:
|
|
|
|
docker stop plausible_clickhouse && docker rm plausible_clickhouse
|
2020-11-05 14:43:24 +03:00
|
|
|
|
|
|
|
postgres:
|
2021-05-19 16:49:39 +03:00
|
|
|
docker run --detach -e POSTGRES_PASSWORD="postgres" -p 5432:5432 --volume=plausible_db:/var/lib/postgresql/data --name plausible_db postgres:12
|
|
|
|
|
|
|
|
postgres-stop:
|
|
|
|
docker stop plausible_db && docker rm plausible_db
|