-
Notifications
You must be signed in to change notification settings - Fork 1
/
makefile
169 lines (161 loc) · 3.6 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
# Makefile for the project
# Variables
# Commands
serve: pull
@echo "Serving the project..."
docker compose -f compose.yml up -d --build --pull always
down: pull
@echo "Stopping the project..."
docker compose -f compose.yml down --remove-orphans
pull:
@echo "Pulling the project..."
git pull
deploy-local-core: pull
{ \
echo "Deploying the core stack..." ;\
set -a ;\
. ./swarm/.env ;\
set +a ;\
docker stack deploy --compose-file ./swarm/local_core.yml core ;\
}
deploy-core: pull
{ \
echo "Deploying the core stack..." ;\
set -a ;\
. ./swarm/.env ;\
set +a ;\
docker stack deploy --compose-file ./swarm/core.yml core ;\
}
remove-core:
docker stack rm core
deploy-portainer: pull
{ \
echo "Deploying the portainer stack..." ;\
set -a ;\
. ./swarm/.env ;\
set +a ;\
docker stack deploy --compose-file ./swarm/portainer.yml portainer ;\
}
deploy-swarmpit: pull
{ \
echo "Deploying the swarmpit stack..." ;\
set -a ;\
. ./swarm/.env ;\
set +a ;\
docker stack deploy --compose-file ./swarm/swarmpit.yml swarmpit ;\
}
deploy-services: pull
{ \
echo "Deploying the services stack..." ;\
set -a ;\
. ./swarm/.env ;\
set +a ;\
docker stack deploy --compose-file ./swarm/services.yml services ;\
}
deploy-authentik: pull
{ \
echo "Deploying the authentik stack..." ;\
set -a ;\
. ./swarm/.env ;\
set +a ;\
docker stack deploy --compose-file ./swarm/authentik.yml authentik ;\
}
remove-authentik:
docker stack rm authentik
deploy-apps: pull
{ \
echo "Deploying the apps stack..." ;\
set -a ;\
. ./swarm/.env ;\
set +a ;\
docker stack deploy --compose-file ./swarm/apps.yml apps ;\
}
deploy-secondary: pull
{ \
echo "Deploying the secondary stack..." ;\
set -a ;\
. ./swarm/.env ;\
set +a ;\
docker stack deploy --compose-file ./swarm/secondary.yml secondary ;\
}
deploy-adguardhome: pull
{ \
echo "Deploying the adguardhome stack..." ;\
set -a ;\
. ./swarm/.env ;\
set +a ;\
docker stack deploy --compose-file ./swarm/adguardhome.yml adguardhome ;\
}
deploy-emqx: pull
{ \
echo "Deploying the emqx stack..." ;\
set -a ;\
. ./swarm/.env ;\
set +a ;\
docker stack deploy --compose-file ./swarm/emqx.yml emqx ;\
}
deploy-ghost: pull
{ \
echo "Deploying the ghost stack..." ;\
set -a ;\
. ./swarm/.env ;\
set +a ;\
docker stack deploy --compose-file ./swarm/ghost.yml ghost ;\
}
deploy-librechat: pull
{ \
echo "Deploying the librechat stack..." ;\
set -a ;\
. ./swarm/.env ;\
set +a ;\
docker stack deploy --compose-file ./swarm/librechat.yml librechat ;\
}
deploy-mailserver: pull
{ \
echo "Deploying the mailserver stack..." ;\
set -a ;\
. ./swarm/.env ;\
set +a ;\
docker stack deploy --compose-file ./swarm/mailserver.yml mailserver ;\
}
deploy-openwebui: pull
{ \
echo "Deploying the openwebui stack..." ;\
set -a ;\
. ./swarm/.env ;\
set +a ;\
docker stack deploy --compose-file ./swarm/openwebui.yml openwebui ;\
}
deploy-thelounge: pull
{ \
echo "Deploying the thelounge stack..." ;\
set -a ;\
. ./swarm/.env ;\
set +a ;\
docker stack deploy --compose-file ./swarm/thelounge.yml thelounge ;\
}
deploy-searxng: pull
{ \
echo "Deploying the searxng stack..." ;\
set -a ;\
. ./swarm/.env ;\
set +a ;\
docker stack deploy --compose-file ./swarm/searxng.yml searxng ;\
}
deploy-docmost: pull
{ \
echo "Deploying the docmost stack..." ;\
set -a ;\
. ./swarm/.env ;\
set +a ;\
docker stack deploy --compose-file ./swarm/docmost.yml docmost ;\
}
deploy-outline: pull
{ \
echo "Deploying the outline stack..." ;\
set -a ;\
. ./swarm/.env ;\
set +a ;\
docker stack deploy --compose-file ./swarm/outline.yml outline ;\
}
# git submodule update --init --recursive