Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

Fix dev postgres (#6048)

Adam Rutkowskie303a90a90f8
diff --git a/Makefile b/Makefile
index 43a9b92adf..0b148dbda2 100644
--- a/Makefile
+++ b/Makefile
@@ -38,13 +38,13 @@ clickhouse-stop: ## Stop and remove the clickhouse container
PG_FLAGS ?= --detach -e POSTGRES_PASSWORD="postgres" -p 5432:5432 --name plausible_db
postgres: ## Start a container with a recent version of postgres
- docker run $(PG_FLAGS) --volume=plausible_db:/var/lib/postgresql/data postgres:latest
+ docker run $(PG_FLAGS) --volume=plausible_db:/var/lib/postgresql/docker postgres:latest
postgres-client: ## Connect to postgres
docker exec -it plausible_db psql -U postgres -d plausible_dev
postgres-prod: ## Start a container with the same version of postgres as the one in prod
- docker run $(PG_FLAGS) --volume=plausible_db_prod:/var/lib/postgresql/data postgres:18
+ docker run $(PG_FLAGS) --volume=plausible_db_prod:/var/lib/postgresql/docker postgres:18
postgres-stop: ## Stop and remove the postgres container
docker stop plausible_db && docker rm plausible_db