Introduction
depends-on: ogn-commons, ogn-client
OGN gateway-web is a standalone java spring boot application which is meant to serve statistics (in JSON format) + generated charts via HTTP.
Running the gateway-web in docker
Docker image is available in Docker Hub repository. That's the easiest and fastest way of launching this app. You can run it on your machine (or in a cloud!) and you don't need to checkout the code, compile, configure, etc.. anymore.
Of course if you still prefer to do it the "classic" way (i.e. checkout sources, build & run the app…) follow the this tutorial for ogn-gatway (the build steps are practically the same).
production system deployment topology
A stack of containers is defined in a docker cloud. A reverse proxy ogn-gateway-web-nginx stands between a user and the ogn-gateway-web container. Only the proxy exposes port (http 80). Proxy serves IGC files and runs server-side python cgi scripts (e.g. rendering igc file list pages). All requests for stats (/rest & /charts) are redirected to the ogn-gateway-web container, on port 8080.
REST requests
|
CHART requests
|