Skip to content

Commit

Permalink
Merge pull request #74 from naviqore/release/v0.3.0
Browse files Browse the repository at this point in the history
Release/v0.3.0
  • Loading branch information
munterfi authored Jul 2, 2024
2 parents b870f44 + 79384d9 commit 6ed7904
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,16 @@ Public transit schedule information and connection routing service based on GTFS
mvn spring-boot:run
```

## Deployment

To deploy `public-transit-service` using Docker, run the following command:

```bash
docker run -p 8080:8080 -e GTFS_URI=<URL or PATH> ghcr.io/naviqore/public-transit-service:latest
```

For more configuration options, refer to the [application.properties](src/main/resources/application.properties) file.

## Usage

Access the service at http://localhost:8080 to explore schedules and query transit connections.
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ logging.level.root=${LOG_LEVEL:INFO}
# value is a file path, the GTFS is loaded from the file and the update interval is ignored. Examples:
# - gtfs.static.uri=benchmark/input/switzerland.zip
# - gtfs.static.uri=https://opentransportdata.swiss/en/dataset/timetable-2024-gtfs2020/permalink
gtfs.static.uri=${GTFS_STATIC_URL:src/test/resources/ch/naviqore/gtfs/schedule/sample-feed-1.zip}
gtfs.static.uri=${GTFS_STATIC_URI:src/test/resources/ch/naviqore/gtfs/schedule/sample-feed-1.zip}
# Cron expression for updating the static GTFS feed from the provided URL. Public transit agencies update their static
# GTFS data regularly. Set this interval to match the agency's publish schedule. Default is to update the schedule
# daily at 4 AM.
Expand Down

0 comments on commit 6ed7904

Please sign in to comment.