Setup
Prerequisites
- Docker and Docker Compose
- MySQL or MariaDB database server
Quick Start with Docker Compose
Create a docker-compose.yaml file:
services:
encoder:
image: cr.jdbnet.co.uk/public/encoder:latest
container_name: encoder
restart: always
ports:
- 5000:5000
environment:
- DB_HOST=your-mysql-or-mariadb-host
- DB_USER=database-user
- DB_PASSWORD=database-password
- DB_NAME=encoder
- SECRET_KEY=set-your-secret-key-here
volumes:
- encoder-temp:/temp
- /path/to/your/local/media:/media
volumes:
encoder-temp:
Replace the placeholder environment variables with your actual database credentials
Run the container:
Database Configuration
The application requires a MySQL or MariaDB database to track encoding jobs and store configuration.
-
Create the database:
-
Set the environment variables for database connection:
DB_HOST: Database server hostname or IPDB_USER: Database usernameDB_PASSWORD: Database passwordDB_NAME: Database name (default:encoder)
Initial Access
Once running, access the web interface at http://localhost:5000