Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix docker compose #5

Merged
merged 2 commits into from
Dec 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading