-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
61 lines (40 loc) · 1.37 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
default: install
install: copy-environment generate-dhparam pull build start generate-ssl-cert
copy-environment:
cp -n .env.sample .env
generate-dhparam:
docker run -ti -v nginx-ssl:/certs digitalcanvasdesign/openssl dhparam -out /certs/dhparam.pem 2048
generate-ssl-cert:
mkdir -p data/letsencrypt/webrootauth
docker run -ti --volumes-from dockergogs_nginx_1 certbot/certbot certonly --webroot -w /etc/letsencrypt/webrootauth -d YOUR_DOMAIN --email YOUR_EMAIL --agree-tos
reload-nginx:
docker-compose kill -s HUP nginx
build:
docker-compose build
clean: stop
docker-compose rm
down:
docker-compose down
pull:
docker-compose pull
rebuild: down pull build start-force-recreate
restart: stop start
start:
docker-compose up -d
docker-compose ps
start-force-recreate:
docker-compose up -d --force-recreate
docker-compose ps
stats:
docker stats --format "table {{.Name}}\t{{.CPUPerc}}\t{{.MemUsage}}\t{{.MemPerc}}\t{{.NetIO}}\t{{.BlockIO}}" --no-stream
stats-stream:
docker stats --format "table {{.Name}}\t{{.CPUPerc}}\t{{.MemUsage}}\t{{.MemPerc}}\t{{.NetIO}}\t{{.BlockIO}}"
status:
docker-compose ps
stop:
docker-compose stop
tail:
docker-compose logs -f
top:
docker-compose top
.PHONY: install copy-environment generate-dhparam generate-ssl-cert reload-nginx build clean down pull rebuild restart start start-force-recreate stats stats-stream status stop tail top