diff --git a/README.md b/README.md index 62d545ed..ee3b0acf 100644 --- a/README.md +++ b/README.md @@ -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= 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. diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 06657f6e..27fb8f06 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -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.