Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 1014 Bytes

README.md

File metadata and controls

30 lines (22 loc) · 1014 Bytes

Loco Jobs Admin

title

Loco Jobs Admin provides simple and efficient background processing for the Loco framework. It supports background queues for both Postgres and SQLite databases.

Setup

Build the Docker Image

1. After cloning the project, you can build the Docker image using the following command:

docker build -t loco-job-admin .

2. Once the image is built, run the container and access the admin interface at http://127.0.0.1:8080/:

docker run -it -p 8080:5150 -e LOCO_ENV=development loco-job-admin

3. Configure the Database Connection

To configure the database connection, set the appropriate Docker environment variables:

  • WORKER_KIND: Choose between Postgres or Sqlite.
  • CONNECTION_STRING: Provide the worker's database connection string.

Example:

docker run -it -p 8080:5150 -e WORKER_KIND=Postgres -e CONNECTION_STRING="postgres://user:password@localhost/dbname" loco-job-admin