Skip to content

Commit

Permalink
Add how to run app in dev mode
Browse files Browse the repository at this point in the history
  • Loading branch information
frafra committed Nov 28, 2023
1 parent 30fe5a9 commit cc6221d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,18 @@ Full documentation is available at [gdal.org/drivers/vector/pmtiles.html](https:

The only requirement is having a web server which supports HTTP bytes serving/ranged requests, such as NGINX.

### Development

```bash
docker compose up --profile prod --build
docker compose --profile dev up --build
```

Then, the application can be seen by visiting [http://localhost:8000/](http://localhost:8000/).

### Production

Same as development, but using the `prod` profile:

```bash
docker compose --profile prod up
```
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ services:
<<: *common-nginx
profiles:
- prod
image: ghcr.io/ninanor/nina-map-explorer:main
build: .
volumes:
- ./datasets:/var/www/datasets:ro
Expand Down

0 comments on commit cc6221d

Please sign in to comment.