-
Notifications
You must be signed in to change notification settings - Fork 17
/
Makefile
50 lines (34 loc) · 830 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
47
48
49
50
build:
docker-compose build
up:
docker-compose up -d
up-non-daemon:
docker-compose up
down:
docker-compose down
start:
docker-compose start
stop:
docker-compose stop
restart:
docker-compose stop && docker-compose start
shell-nginx:
docker exec -ti nginx /bin/sh
shell-web:
docker exec -ti django /bin/sh
shell-db:
docker exec -ti postgres /bin/sh
log-nginx:
docker-compose logs nginx
log-web:
docker-compose logs web
log-db:
docker-compose logs db
collectstatic:
docker exec django /bin/sh -c "python manage.py collectstatic --noinput"
prune:
docker-compose down && docker system prune -a -f && docker system prune --volumes -f
postgres-ip:
docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' postgres
postgres-start:
docker-compose build db && docker-compose up -d db