1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-21 17:56:53 +02:00

add membrane

This commit is contained in:
kev 2024-08-15 18:40:27 +08:00
parent 920cf78e60
commit 3255f424ca
4 changed files with 26 additions and 0 deletions

View File

@ -414,6 +414,7 @@ A collection of delicious docker recipes.
- [x] mariadb :bucket:
- [x] matomo
- [x] bluenviron/mediamtx
- [x] predic8/membrane
- [x] memgraph :bucket:
- [x] lab
- [x] memgraph

6
membrane/README.md Normal file
View File

@ -0,0 +1,6 @@
membrane
========
[Membrane][1] is API gateway for REST, OpenAPI, GraphQL and SOAP written in Java.
[1]: https://github.com/membrane/api-gateway

10
membrane/data/proxies.xml Normal file
View File

@ -0,0 +1,10 @@
<api port="2000">
<rateLimiter requestLimit="3" requestLimitDuration="PT30S"/>
<response>
<javascript>
var body = JSON.stringify({foo: 7, bar: 42});
Response.ok(body).contentType("application/json").build();
</javascript>
</response>
<return/>
</api>

View File

@ -0,0 +1,9 @@
version: "3.8"
services:
membrane:
image: predic8/membrane:5.6
ports:
- "2000:2000"
volumes:
- ./data:/opt/membrane/conf
restart: unless-stopped