-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
46 lines (35 loc) · 947 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
42
43
44
45
46
SHELL:=/bin/bash
build:
docker-compose build
up:
docker-compose up -d
init:
docker-compose up -d
docker exec -it devbuild_api_1 python manage.py makemigrations accounts diary task password budget contacts thumbnail
docker exec -it devbuild_api_1 python manage.py migrate
docker exec -it devbuild_api_1 python manage.py collectstatic --noinput
docker-compose stop
bash-api:
docker exec -it devbuild_api_1 bash
bash-front:
docker exec -it devbuild_front_1 bash
bash-postgres:
docker exec -it devbuild_postgres_1 bash
stop:
docker-compose stop
stop-api:
docker stop devbuild_api_1
stop-postgres:
docker stop devbuild_postgres_1
stop-front:
docker stop devbuild_front_1
clear:
docker stop devbuild_api_1
docker stop devbuild_postgres_1
docker stop devbuild_front_1
docker rm devbuild_api_1
docker rm devbuild_postgres_1
docker rm devbuild_front_1
docker rmi devbuild_api
docker rmi postgres
docker rmi devbuild_front