Skip to content

Commit

Permalink
add a service based on ldproxy
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul committed May 25, 2021
1 parent 6683724 commit 7909141
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 5 deletions.
13 changes: 8 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,16 @@ and [GitHub Encrypted Secrets](https://docs.github.com/en/actions/reference/encr
The operational stack is composed with the following components:

* [Traefik](https://traefik.io/) a frontend proxy/load-balancer and SSL (HTTPS) endpoint.
* [pygeoapi](https://pygeoapi.io/) a Python server implementation of the OGC API suite of standards.
* to be determined: [GeoServer](http://geoserver.org/), [ldproxy](https://interactive-instruments.github.io/ldproxy/), ...
* [mkdocs](https://www.mkdocs.org/) for website and live documentation
* [mkdocs](https://www.mkdocs.org/) for live documentation

* both an experimental and stable stack instance is available
* [GeoHealthCheck]() is a component to monitor the availability and complience of the implementations

The above setup has been used with success in several projects like
the [pygeoapi demo server](https://demo.pygeoapi.io/).
# Services

* [pygeoapi](https://pygeoapi.io/) a Python server implementation of the OGC API suite of standards.
* [GeoServer](http://geoserver.org/) a Java server implementation of the OGC API suite of standards.
* [ldproxy](https://interactive-instruments.github.io/ldproxy/) a Java server implementation of the OGC API suite of standards.

## Selective Redeploy
When changes are pushed to this repo only the affected services are redeployed.
Expand Down
5 changes: 5 additions & 0 deletions services/ldproxy/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# ldproxy demo service

Runs latest
[LDProxy Docker Image from DockerHub](https://hub.docker.com/r/iide/ldproxy).

43 changes: 43 additions & 0 deletions services/ldproxy/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
version: "3"

volumes:
ldproxy_data:

services:

ldproxy:

image: iide/ldproxy:latest

container_name: ldproxy

# expose:
# - "80"

ports:
- "80:7080"

volumes:
- ldproxy_data:/ldproxy/data

labels:
- "traefik.enable=true"
# local http router
- "traefik.http.routers.ldproxy_lhttp.rule=Host(`local.map5.nl`) || Host(`localhost`) && PathPrefix(`/ldproxy`)"
- "traefik.http.routers.ldproxy_lhttp.entrypoints=http"
- "traefik.http.routers.ldproxy_lhttp.middlewares=secure-headers@file"
# https router
- "traefik.http.routers.ldproxy_https.rule=Host(`oapi.map5.nl`) && PathPrefix(`/ldproxy`)"
- "traefik.http.routers.ldproxy_https.entrypoints=https"
- "traefik.http.routers.ldproxy_https.tls=true"
- "traefik.http.routers.ldproxy_https.tls.certresolver=le"
- "traefik.http.routers.ldproxy_https.tls.options=my_default@file"
- "traefik.http.routers.ldproxy_https.middlewares=secure-headers@file"

- "traefik.frontend.priority=100"
- "traefik.docker.network=service-network"

networks:
default:
external:
name: service-network
4 changes: 4 additions & 0 deletions services/ldproxy/start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

./stop.sh
docker-compose up -d
4 changes: 4 additions & 0 deletions services/ldproxy/stop.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

docker-compose stop
docker-compose rm --force

0 comments on commit 7909141

Please sign in to comment.