-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
23 lines (17 loc) · 676 Bytes
/
Makefile
File metadata and controls
23 lines (17 loc) · 676 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Brevity-Sharing Makefile
.PHONY: up down build logs db-shell
# Spin up the entire stack in the background
up:
docker compose -f infrastructure/docker-compose.yml --env-file infrastructure/.env up -d
# Tear down the stack
down:
docker compose -f infrastructure/docker-compose.yml down
# Rebuild the Docker images (use this after changing Go or React code)
build:
docker compose -f infrastructure/docker-compose.yml build
# View the logs for all services in real-time
logs:
docker compose -f infrastructure/docker-compose.yml logs -f
# Access the PostgreSQL database directly via command line
db-shell:
docker exec -it brevity-db psql -U brevity_user -d brevity_db