Skip to content

Commit

Permalink
Merge pull request #5 from NielsHoffmann/main
Browse files Browse the repository at this point in the history
fix docker compose
  • Loading branch information
lathoub authored Dec 14, 2024
2 parents a4a4f1c + 26b848a commit 28400d3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# OGC API kennissessie

Repository ten behoeve van kennisdeling voor het bouwen van een OGC API Features & Processes node app.

Dit is geen operationele service.
Expand All @@ -10,12 +11,16 @@ Dit is geen operationele service.

1. Vanaf de commandline: `node --env-file=.env src/index.js`
2. In Visual Studio Code: er is een [.vscode/launch.json](.vscode/launch.json) bestand meegeleverd, waarmee met een **druk op F5** de server start.

3. De server start, maar mogelijk is poort 8080 niet beschikbaar.
1. Wijzig dan in het bestand [`.env`](.env) de regel `PORT=8080` naar een niet-gepriviligeerd, hoger poortnummer, bijv. `PORT=8085`.

4. Open in een webbrower de service op `http://localhost:8080/{ID}/v{APIVERSION}`.
1. Bijv. als het poortnummer is verhoogd: http://localhost:8085/demoservice/v1/
1. Bijv. als het poortnummer is verhoogd: [http://localhost:8085/demoservice/v1/](http://localhost:8085/demoservice/v1/)

## Start the service from Docker Desktop

1. zorg dat docker desktop en docker compose geinstalleerd zijn.
2. vanaf de commandline: `docker compose up`

On the [wiki](https://github.com/Geonovum/ogc-api-kennissessie/wiki/Starting-the-service-on-Docker-Desktop)
10 changes: 5 additions & 5 deletions compose.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
version: '3'
# version: '3'
services:
web:
image: okapi
build: .
networks:
- backend
# networks:
# - backend
ports:
- "80:5454"
- 8080:8080
volumes:
- ./:/home/node/okapi/data
- ./data:/home/node/okapi/data

4 changes: 2 additions & 2 deletions src/views/feature.pug
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ block header
- let pathElement2 = links[4].substring(links[4].lastIndexOf("/") + 1);
li.breadcrumb-item.active(aria-current='page')
| #{pathElement2}
ul.list-separated.m-0.p-0
a(href=linkSelf + '?f=json') JSON
ul.list-separated.m-0.p-0
a(href=linkSelf + '?f=json') JSON


block content
Expand Down

0 comments on commit 28400d3

Please sign in to comment.