Docker compose files for Amarillo, Amarillo-enhancer and GTFS generator for quickly deploying an Amarillo instance.
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 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 upThis will launch Amarillo together with a local enhancer and gtfs-generator service with the container images published to the MFDZ package registry.
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