🧪 OpenL Studio Sample Environment

This sample Docker Compose setup runs a fully integrated environment for OpenL Studio, preconfigured to connect to a Git repository and PostgreSQL database. It includes:

  • Gitea – a lightweight Git server
  • OpenL Studio – for rule editing and testing
  • PostgreSQL – for storing OpenL Studio metadata
  • Init Containers – to bootstrap Gitea and database schemas

What’s Included

Services

Service Purpose
gitea Lightweight Git server for storing rules and metadata
gitea-init Initializes the Gitea instance, creates user and repository
studio OpenL Studio, preconfigured to connect to Gitea and Postgres
postgres PostgreSQL database used by Studio
init One-time container to download JDBC driver and setup schemas

Features

  • Gitea pre-seeded with an admin user and a repository holding the projects of ../example
  • OpenL Studio configured for Git-based rule projects
  • PostgreSQL database with prepared schemas
  • Support for protected branches

Security Notice

This sample setup uses basic built-in authentication for demonstration purposes:

USER_MODE=multi
SECURITY_ADMINISTRATORS=admin

Multi-user mode allows login using predefined OpenL Studio accounts.

The default admin user has full access to the system. Default credentials are admin/admin

Other options are described below.


Getting Started

Prerequisites

  • Docker CLI with the Docker Compose plugin
  • A containerization service
  • Internet connection (required to download base images and JDBC driver)

Start the environment

docker compose up

This will:

  • Start all services
  • Initialize the Git repository and Gitea user
  • Set up OpenL Studio with database and Git connectivity

Access Information

Service URL / Host Notes
Gitea http://localhost:3000 Login: admin_user / admin_password
OpenL Studio http://localhost:8081 Login: admin / admin (multi-user mode enabled)
PostgreSQL localhost:5432 DB: openl_studio, User: openl_user / openl_password

Do not use default passwords in production. Update compose.yaml as needed.


OpenL Studio Git Repository Configuration

This setup defines a repository named example in OpenL Studio using environment variables. It protects the main and release-* branches and commits to the develop branch.

For a detailed explanation of configuration parameters, refer to the OpenL Studio Git Integration Guide.


Use Cases

  • Local testing of rule development lifecycle with Git
  • Evaluating multi-user OpenL Studio functionality
  • Integrating OpenL Studio with CI/CD pipelines
  • Serving as a base for custom OpenL Rule Services platforms

Different security options

There are several other options for user management other than default multi-user. There is an example for Active Directory below. Please be aware that you have to configure identity provider by yourself before starting this config.

docker compose -f compose.yaml -f compose.ad.yaml up

The other USER_MODE values and their properties are described in the Security section of the OpenL Studio configuration guide.


Cleanup

To remove all containers and volumes:

docker compose down -v