-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (29 loc) · 832 Bytes
/
Copy pathMakefile
File metadata and controls
39 lines (29 loc) · 832 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
.PHONY: up down reseed logs ps psql
# Start everything (build images, run in background).
up:
docker compose up --build -d
# Stop and remove containers AND the data volume (full reset).
down:
docker compose down -v
# Wipe and reload the dataset in-place (keeps the volume/container).
reseed:
docker compose run --rm seed python -m src.seed --force
# Follow logs from all services.
logs:
docker compose logs -f
# Show service status.
ps:
docker compose ps
# Open a psql shell against the running database.
psql:
docker compose exec postgres psql -U postgres -d postgres
### Additions below
# Run dbt models.
dbt-run:
docker compose exec dbt dbt run
# Open psql against the warehouse.
psql-warehouse:
docker compose exec warehouse psql -U postgres -d warehouse
# Open Metabase.
metabase:
open http://localhost:3000