This repository has been archived by the owner on Sep 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
47 lines (40 loc) · 1.9 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
.PHONY: dc-traefik dcd-traefik dc-haproxy dcd-haproxy dc-nginx dcd-nginx dc-envoy dcd-envoy tf-traefik tfd-traefik clean
export COMPOSE_ROOT := ./docker-compose
export TF_ROOT := ./terraform
# ===============================================
# Traefik
# ===============================================
dc-traefik: # docker-compose
@cd ${COMPOSE_ROOT} && docker-compose -f docker-compose.yaml -f docker-compose.traefik.yaml up -d
dcd-traefik: # docker-compose
@cd ${COMPOSE_ROOT} && docker-compose -f docker-compose.yaml -f docker-compose.traefik.yaml down
tf-traefik: # terraform
@cd ${TF_ROOT} && terraform init && terraform apply -auto-approve
tfd-traefik: # terraform
@cd ${TF_ROOT} && terraform destroy -auto-approve
# ===============================================
# HAProxy
# ===============================================
dc-haproxy: # docker-compose
@cd ${COMPOSE_ROOT} && docker-compose -f docker-compose.yaml -f docker-compose.haproxy.yaml up -d
dcd-haproxy: # docker-compose
@cd ${COMPOSE_ROOT} && docker-compose -f docker-compose.yaml -f docker-compose.haproxy.yaml down
# ===============================================
# NGINX
# ===============================================
dc-nginx: # docker-compose
@cd ${COMPOSE_ROOT} && docker-compose -f docker-compose.yaml -f docker-compose.nginx.yaml up -d
dcd-nginx: # docker-compose
@cd ${COMPOSE_ROOT} && docker-compose -f docker-compose.yaml -f docker-compose.nginx.yaml down
# ===============================================
# Envoy
# ===============================================
dc-envoy: # docker-compose
@cd ${COMPOSE_ROOT} && docker-compose -f docker-compose.yaml -f docker-compose.envoy.yaml up -d
dcd-envoy: # docker-compose
@cd ${COMPOSE_ROOT} && docker-compose -f docker-compose.yaml -f docker-compose.envoy.yaml down
# ===============================================
# Cleanup
# ===============================================
clean:
@echo Todo