Simplifying, adding initialization script to docker-compose

This commit is contained in:
Nat Hillard 2021-05-04 14:56:49 -04:00
commit 9275966c0a
8 changed files with 42 additions and 52 deletions

View file

@ -1,5 +1,15 @@
# Tile Server
A simple tile server using [pg_tileserv](https://github.com/CrunchyData/pg_tileserv).
## What is it?
Based on pg_tileserv [docker example](https://github.com/CrunchyData/pg_tileserv/tree/master/examples/docker).
A simple tile server using [pg_tileserv](https://github.com/CrunchyData/pg_tileserv), based on pg_tileserv [docker example](https://github.com/CrunchyData/pg_tileserv/tree/master/examples/docker).
## How to use it?
1. Edit variables in `docker-compose.yml` if necessary to customize username/pw
2. Run `docker-compose up` to start running the server. It will likely stall in enabling extensions (TODO: figure this out))
3. Restart the server with ctrl-c. It should load the data from the `data/` directory exactly one time.
## Using
- Point your visualization library to the following URL, and select `vector` tiles: `http://localhost:7800/public.maryland/{z}/{x}/{y}.mvt`