-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
42 lines (37 loc) · 946 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
# Traefik
rdc-std-t: ddc-std-t udc-std-t
@echo ••• RECREATE
udc-std-t:
@echo ••• UP RE-BUILD
docker compose -p paper-cms -f ./standard/docker-compose.traefik.yml up --build
ddc-std-t:
@echo ••• DOWN
docker compose -p paper-cms -f ./standard/docker-compose.traefik.yml down
# Local
rdc-std: ddc-std udc-std
@echo ••• RECREATE
udc-std:
@echo ••• UP RE-BUILD
docker compose -p paper-cms -f ./standard/docker-compose.yml up --build
ddc-std:
@echo ••• DOWN
docker compose -p paper-cms -f ./standard/docker-compose.yml down
prune:
@echo ••• PRUNE
docker volume prune -f
docker system prune -f
# Bundled
# …
#
# Contexts
ctx-p:
@echo ••• SWITCH TO PRODUCTION
docker context use production
ctx-d:
@echo ••• SWITCH TO DEFAULT
docker context use default
# Deploys
prod: ctx-p rdc-std-t
@echo ••• DEPLOYING PRODUCTION
local: ctx-d rdc-std
@echo ••• DEPLOYING LOCAL