Skip to content

Docker compose files for Amarillo, Enhancer and GTFS Generator

License

Notifications You must be signed in to change notification settings

mfdz/amarillo-compose

Repository files navigation

amarillo-compose

Docker compose files for Amarillo, Amarillo-enhancer and GTFS generator for quickly deploying an Amarillo instance.

Quick start

To get Amarillo running quickly:

git clone https://github.com/mfdz/amarillo-compose.git
cd amarillo-compose

cp .env.example .env    # you should adjust .env configuration as needed
./update_sample_data.sh # sets current dates for the sample trips 
mkdir -p data && cp -r ./sampledata/* data     # copies sample data with 1 agency and 4 sample trips

docker compose --profile enhancer --profile generator up # starts amarillo, amarillo-enhancer and amarillo-gtfs-generator 

Basic setup

Configure the ADMIN_TOKEN, METRICS_USER and METRICS_PASSWORD environment variables in the shell or a .env file:

ADMIN_TOKEN="<secret_here>"
METRICS_USER="<username here>"
METRICS_PASSWORD="<password_here>"

METRICS_USER and METRICS_PASSWORD define the credentials to access the /metrics endpoint.

To use Mitanand GRFS generation, change the generator image:

AMARILLO_GENERATOR_IMAGE="git.gerhardt.io/amarillo/amarillo-grfs-generator"

For launching Amarillo

docker compose --profile enhancer --profile generator up

This will launch Amarillo together with a local enhancer and gtfs-generator service with the container images published to the GI package registry.

External services

You can override the images used with the AMARILLO_ENHANCER_IMAGE and AMARILLO_GENERATOR_IMAGE.

In case you want to use an external service for the enhancer and/or generator, you should omit the corresponding --profile argument and configure AMARILLO_ENHANCER_URL / AMARILLO_GENERATOR_URL.

docker compose --profile enhancer up    # run amarillo + enhancer; GENERATOR_URL should be configured to point to external service
docker compose --profile generator up   # run amarillo + generator; ENHANCER_URL should be configured to point to external service
docker compose up                       # only run amarillo; GENERATOR_URL and ENHANCER_URL should both be configured

About

Docker compose files for Amarillo, Enhancer and GTFS Generator

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages