This directory provides a minimal Compose project demonstrating several Ofelia job types.
docker compose upOfelia reads the jobs defined in ofelia.ini and also uses Docker labels to configure jobs.
- ofelia – runs the scheduler with access to
ofelia.iniand the Docker socket - nginx – simple container with an
execjob label that prints a message every hour
job-execvia labels on thenginxservicejob-rundefined inofelia.inito start an Alpine container printing the datejob-localdefined inofelia.iniexecuting a command inside the Ofelia containerjob-service-rundefined inofelia.ini(requires Docker Swarm)job-composedefined inofelia.initriggering a Compose service
The data/ directory is mounted so you can inspect the output of the run job.