From eb10778669cc8f301b0ae953adbdf053a23816b5 Mon Sep 17 00:00:00 2001 From: Julian Simioni Date: Thu, 19 Jul 2018 08:42:16 -0400 Subject: [PATCH] Add nginx-based preview --- common/preview/index.html | 43 ++++++++++++++++++++++++ projects/south-africa/docker-compose.yml | 7 ++++ 2 files changed, 50 insertions(+) create mode 100644 common/preview/index.html diff --git a/common/preview/index.html b/common/preview/index.html new file mode 100644 index 0000000..356f389 --- /dev/null +++ b/common/preview/index.html @@ -0,0 +1,43 @@ + + + pelias autocomplete demo + + + + + + + + +
+ + + + diff --git a/projects/south-africa/docker-compose.yml b/projects/south-africa/docker-compose.yml index 5a11fbc..141502e 100644 --- a/projects/south-africa/docker-compose.yml +++ b/projects/south-africa/docker-compose.yml @@ -98,6 +98,13 @@ services: volumes: - "./pelias.json:/code/pelias.json" - "${DATA_DIR}:/data" + preview: + image: nginx + container_name: pelias_preview + restart: always + ports: [ "3000:80" ] + volumes: + - "../../common/preview:/usr/share/nginx/html" elasticsearch: image: pelias/elasticsearch container_name: pelias_elasticsearch