-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (28 loc) · 883 Bytes
/
Copy pathMakefile
File metadata and controls
37 lines (28 loc) · 883 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
.PHONY: up down build logs ps shell-db shell-backend
## up: build images and start all services (dev mode with override)
up:
docker compose up --build
## up-prod: start without the dev override (production-like)
up-prod:
docker compose -f docker-compose.yml up --build -d
## down: stop and remove containers (keeps volumes)
down:
docker compose down
## down-volumes: stop containers AND delete all data volumes
down-volumes:
docker compose down -v
## build: build the backend image without starting
build:
docker compose build backend
## logs: tail all service logs
logs:
docker compose logs -f
## ps: show running containers
ps:
docker compose ps
## shell-db: open a psql shell in the db container
shell-db:
docker compose exec db psql -U sptraffic -d sptraffic
## shell-backend: open a shell in the backend container
shell-backend:
docker compose exec backend sh