Skip to content

Commit

Permalink
Preparing for KrakenD
Browse files Browse the repository at this point in the history
  • Loading branch information
akadlec committed Jul 27, 2020
1 parent 5927e61 commit b195e4d
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
29 changes: 29 additions & 0 deletions containers/krakend/krakend.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"version" : 2,
"extra_config" : {},
"timeout" : "3000ms",
"cache_ttl" : "300s",
"output_encoding" : "json",
"endpoints" : [
{
"endpoint" : "/devices-node/v1/devices/{device}",
"method" : "GET",
"output_encoding" : "json",
"extra_config" : {},
"querystring_params" : [],
"backend" : [
{
"url_pattern" : "/v1/devices/{device}",
"encoding" : "json",
"sd" : "static",
"method" : "GET",
"extra_config" : {},
"host" : [
"http:https://devices-node:8000"
],
"disable_host_sanitize" : false
}
]
}
]
}
15 changes: 15 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,21 @@ services:
NUXT_ENV_WS_TARGET: ws:https://websockets-node.${LOCAL_DOMAIN}:9787
NUXT_ENV_WS_KEY: ${APP_WS_KEY}

# API GATEWAY
gateway:
image: devopsfaith/krakend:latest
container_name: io_server_gateway
volumes:
- ./containers/krakend:/etc/krakend
networks:
local-network:
aliases:
- gateway.${LOCAL_DOMAIN}
ports:
- "1234:1234"
- "8080:8080"
- "8090:8090"

# API GATEWAY NODE
gateway-node:
image: fastybird/gateway-node:latest
Expand Down

0 comments on commit b195e4d

Please sign in to comment.