mirror of
https://github.com/gotson/komga.git
synced 2026-05-07 12:01:40 +02:00
- Add flyway-database-postgresql dependency - Create DatabaseUdfProvider abstraction with SQLite/PostgreSQL implementations - Update all DAO classes to use JooqUdfHelper for database-agnostic UDF/collation - Implement dynamic JOOQ dialect configuration based on database type - Add PostgreSQL migration directory with initial migration - Create Docker Compose setup for PostgreSQL 16 - Add integration test with Testcontainers PostgreSQL - Create helper scripts for local testing - Update application.yml for simplified testing - Add documentation and task tracking
27 lines
No EOL
718 B
Bash
Executable file
27 lines
No EOL
718 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# Script to run Komga locally with PostgreSQL
|
|
|
|
set -e
|
|
|
|
echo "Starting PostgreSQL container..."
|
|
docker-compose up -d postgres
|
|
|
|
echo "Waiting for PostgreSQL to be ready..."
|
|
sleep 5
|
|
|
|
echo "Building Komga..."
|
|
./gradlew :komga:build -x test
|
|
|
|
echo "Running Komga with PostgreSQL..."
|
|
SPRING_PROFILES_ACTIVE=docker \
|
|
KOMGA_DATABASE_TYPE=postgresql \
|
|
KOMGA_DATABASE_URL="jdbc:postgresql://localhost:5433/komga?sslmode=disable&socketTimeout=10" \
|
|
KOMGA_DATABASE_USERNAME=komga \
|
|
KOMGA_DATABASE_PASSWORD=komga123 \
|
|
KOMGA_CONFIG_DIR="$HOME/.komga-postgres" \
|
|
./gradlew :komga:bootRun
|
|
|
|
echo "Komga is running at http://localhost:25600"
|
|
echo "PostgreSQL is running at localhost:5433"
|
|
echo "To stop: docker-compose down" |