Docker Deployment
Start a Membrane Container
$ docker run -p 2000:2000 predic8/membrane
Navigate to http://localhost:2000 in the browser or use curl:
curl http://localhost:2000
This yields the same response as calling https://api.predic8.de does.
Exposing Ports
Use -p <<External-Port>>:<<Internal-Port>> to make ports reachable from your computer. To allow access to port 2000 and 9000 use:
$ docker run -p 2000:2000 -p 9000:9000 predic8/membrane
Changing the Configuration
- Download a
proxies.xmlconfiguration from github or take it from theconffolder of a Membrane distribution. - Modify the
proxies.xmlaccording to your needs. -
Start Membrane with a volume:
Windows/Linux:
docker run -v proxies.xml:/opt/membrane/conf/proxies.xml -p 2000:2000 predic8/membraneMac:
docker run -v "$(pwd)/proxies.xml:/opt/membrane/conf/proxies.xml" -p 2000:2000 predic8/membrane