-
Notifications
You must be signed in to change notification settings - Fork 835
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(compose): introduce hybrid mode
Signed-off-by: Joshua Schmid <[email protected]>
- Loading branch information
Showing
5 changed files
with
192 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,19 @@ | ||
# Determine whether to use 'docker-compose' or 'docker compose' | ||
DOCKER_COMPOSE := $(shell command -v docker-compose || echo docker compose) | ||
|
||
kong-postgres: | ||
COMPOSE_PROFILES=database KONG_DATABASE=postgres docker-compose up -d | ||
@COMPOSE_PROFILES=database,traditional KONG_DATABASE=postgres $(DOCKER_COMPOSE) up -d | ||
|
||
# Alias for kong-postgres | ||
kong-traditional: kong-postgres | ||
|
||
kong-dbless: | ||
docker-compose up -d | ||
@COMPOSE_PROFILES=traditional $(DOCKER_COMPOSE) up -d | ||
|
||
kong-hybrid: | ||
@COMPOSE_PROFILES=hybrid,database KONG_DATABASE=postgres $(DOCKER_COMPOSE) up -d | ||
|
||
|
||
clean: | ||
docker-compose kill | ||
docker-compose rm -f | ||
@$(DOCKER_COMPOSE) kill | ||
@$(DOCKER_COMPOSE) rm -f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
-----BEGIN CERTIFICATE----- | ||
MIIBVzCB3wIBADAKBggqhkjOPQQDAjAaMRgwFgYDVQQDDA9rb25nX2NsdXN0ZXJp | ||
bmcwHhcNMjQwNDI5MDg1MzAwWhcNMjcwNDI5MDg1MzAwWjAaMRgwFgYDVQQDDA9r | ||
b25nX2NsdXN0ZXJpbmcwdjAQBgcqhkjOPQIBBgUrgQQAIgNiAASKasXr38/wTQHU | ||
o9ksCY6OVsQ0WnkyftA8moYRbjxshpDHMYeC2vZWktc0W6ZOblIBoBpq1G53Aocj | ||
/wI2aMzUerTHwnZZPvzvr3WuATylEXtLz3oH+XT1JRnai9HP3l4wCgYIKoZIzj0E | ||
AwIDZwAwZAIwH8OHm5S10GkxwJ8aUy4ojxrI5Xuq4M5H7b0qsu0b2YjHnfK6nIC2 | ||
BptoQrtkZdBJAjBCJTOVmob4vUQ4/hzg4NIXmPZ9q5dnFtaDtdkwKQ7XE+xnhzhY | ||
S/7lFNVai7VSfIQ= | ||
-----END CERTIFICATE----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
-----BEGIN PRIVATE KEY----- | ||
MIG2AgEAMBAGByqGSM49AgEGBSuBBAAiBIGeMIGbAgEBBDCZetgpP2raNWdy1CPU | ||
k6G7t0b7mpf+IRkSNvjLo1sbEqnex5MRlFr81/qicvopAAWhZANiAASKasXr38/w | ||
TQHUo9ksCY6OVsQ0WnkyftA8moYRbjxshpDHMYeC2vZWktc0W6ZOblIBoBpq1G53 | ||
Aocj/wI2aMzUerTHwnZZPvzvr3WuATylEXtLz3oH+XT1JRnai9HP3l4= | ||
-----END PRIVATE KEY----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters