Skip to content

Repository files navigation

OpenCue Docker Setup

This repository contains Docker Compose configuration for running OpenCue components.

Components

  • Cuebot: Core OpenCue service for job management
  • PostgreSQL: Database for storing OpenCue data

Getting Started

Prerequisites

  • Git
  • Docker

Setup Instructions

  1. Clone this repository
  2. Run the start script:
chmod +x *.sh
./start-cuebot.sh

The script will:

  • Check if docker.env exists
  • If not, prompt you to configure ports (or use defaults)
  • Create a docker.env file with your settings
  • Start the PostgreSQL service
  • Ask if you want to initialize the database schema and seed data (recommended for first-time setup)
  • Start the Cuebot service
  1. Verify the services are running:
docker-compose ps

Database Setup

The first time you run the system, you need to initialize the database schema and seed data. The start script will ask if you want to do this automatically. If you need to do it separately, you can run:

./setup-db.sh

This will:

  1. Download the official OpenCue schema (v1.4.11) from GitHub releases
  2. Download the official seed data (v1.4.11) from GitHub releases
  3. Apply both to your PostgreSQL instance
  4. Create a test show and other necessary initial data

Configuration

You can customize the environment variables by:

  • Editing the generated docker.env file
  • Creating your own docker.env based on docker.env.example before running the start script

Default configuration in docker.env.example:

  • PostgreSQL
    • Database: cuebot_local
    • Username: cuebot
    • Password: changeme
  • Ports
    • Cuebot HTTP: 8080
    • Cuebot HTTPS: 8443
    • PostgreSQL: 5432

Ports

Default ports (can be configured during setup):

  • Cuebot HTTP: 8080
  • Cuebot HTTPS: 8443
  • PostgreSQL: 5432

Data Persistence

The following data is persisted using Docker volumes:

  • postgres_data: PostgreSQL database
  • opencue_logs: OpenCue logs

Stopping the Services

./stop-cuebot.sh

Alternatively, you can use:

docker-compose down

To completely remove the services and volumes:

docker-compose down -v

Troubleshooting

If you encounter any issues with the setup:

./fix-connection.sh

This script will:

  1. Stop all services
  2. Reset your docker.env to default values
  3. Restart services in the correct order
  4. Reinitialize the database if requested

Connection Issues

If Cuebot can't connect to PostgreSQL:

  1. Make sure the PostgreSQL container is running:

    docker ps | grep postgres
  2. Check PostgreSQL logs:

    docker logs opencue-postgres
  3. Check Cuebot logs:

    docker logs opencue-cuebot
  4. Run the debug script to diagnose issues:

    ./debug.sh

Port Conflicts

If you see "address already in use" errors, you can:

  1. Use different ports when prompted during setup
  2. Manually edit the docker.env file to change ports
  3. Stop any running instances of PostgreSQL:
    sudo systemctl stop postgresql

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages