-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (28 loc) · 879 Bytes
/
Makefile
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
40
41
prod:
docker compose up -d
prod-new:
docker compose up -d --build
prod-stop:
docker compose down
prod-restart:
make prod-stop && make prod
dev:
docker compose -f docker-compose.yml -f docker-compose.dev.yml up -d
dev-new:
docker compose -f docker-compose.yml -f docker-compose.dev.yml up -d --build
dev-stop:
docker compose -f docker-compose.yml -f docker-compose.dev.yml down
dev-restart:
make dev-stop && make dev
test:
docker compose -f docker-compose.test.yml up -d --build
test-stop:
docker compose -f docker-compose.test.yml down
test-restart:
make test-stop && make test
appdb-dump-schema:
docker exec iss-main-db pg_dump -U postgres -d iss_app_db --schema-only > app_dump_schema
appdb-dump-data:
docker exec iss-main-db pg_dump -U postgres -d iss_app_db --data-only > app_dump_data
dump-database:
make appdb-dump-schema && make appdb-dump-data