-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
71 lines (48 loc) · 1.32 KB
/
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
create-volume:
docker volume create --name=static && docker volume create --name=media
create-network:
docker network create nginx-proxy
build:
docker-compose up -d --build
up:
docker-compose up -d
up-test:
docker-compose up
up-nginx:
docker-compose -f nginx-proxy/docker-compose.yaml up -d
up-test-nginx:
docker-compose -f nginx-proxy/docker-compose.yaml up
start:
docker-compose start
stop:
docker-compose stop
start-nginx:
docker-compose -f nginx-proxy/docker-compose.yaml start
stop-nginx:
docker-compose -f nginx-proxy/docker-compose.yaml stop
down-nginx:
docker-compose -f nginx-proxy/docker-compose.yaml down
restart:
docker-compose stop && docker-compose start
restart-nginx:
docker-compose -f nginx-proxy/docker-compose.yaml stop && docker-compose -f nginx-proxy/docker-compose.yaml start
shell-nginx:
docker exec -ti nginx /bin/sh
shell-web:
docker exec -ti dev /bin/sh
shell-db:
docker exec -ti db /bin/sh
log-nginx:
docker-compose logs nginx
log-web:
docker-compose logs web
log-db:
docker-compose logs db
collectstatic:
docker exec dev /bin/sh -c "python manage.py collectstatic --noinput"
migrate:
docker exec dev /bin/sh -c "python manage.py makemigrations && python manage.py migrate"
createsuperuser:
docker-compose run web python manage.py createsuperuser
rebuild:
sh rebuild_web.sh