-
Notifications
You must be signed in to change notification settings - Fork 52
/
makefile
61 lines (61 loc) · 1.79 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
b:
docker compose build
u: # запуск контейнеров
bash ./update/update.sh &
touch ./override.env
IP=$(shell curl ipinfo.io/ip) VER=$(shell git describe --tags) docker compose --env-file ./.env --env-file ./override.env up -d --force-recreate
d: # остановка контейнеров
-kill -9 $(shell cat ./update/update_pid) > /dev/null
docker compose down --remove-orphans
dv: # остановка контейнеров
docker compose down -v
r: d u
ps: # список контейнеров
docker compose ps
l: # логи из контейнеров
docker compose logs
php: # консоль сервиса
docker compose exec php /bin/sh
wg: # консоль сервиса
docker compose exec wg /bin/sh
wg1: # консоль сервиса
docker compose exec wg1 /bin/sh
ss: # консоль сервиса
docker compose exec ss /bin/sh
ng: # консоль сервиса
docker compose exec ng /bin/sh
np: # консоль сервиса
docker compose exec np /bin/sh
up: # консоль сервиса
docker compose exec up /bin/sh
ad: # консоль сервиса
docker compose exec ad /bin/sh
wp: # консоль сервиса
docker compose exec wp /bin/sh
proxy: # консоль сервиса
docker compose exec proxy /bin/sh
tg: # консоль сервиса
docker compose exec tg /bin/sh
xr: # консоль сервиса
docker compose exec xr /bin/sh
oc: # консоль сервиса
docker compose exec oc /bin/sh
clean:
docker image prune
docker builder prune
cleanf:
docker image prune -f > /dev/null
docker builder prune -f > /dev/null
cleanall:
docker image prune -a -f
docker builder prune -a -f
push:
docker compose push
s:
git status -su
c:
git add config/
git checkout .
git reset
webhook:
docker compose exec php php checkwebhook.php