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
mkdir data && cp -r ./sampledata/* data # copies sample data with 1 agency and 1 repeating trip
sudo 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 up
This will launch Amarillo together with a local enhancer and gtfs-generator service with the container images published to the GI 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
.