mirror of
https://github.com/gotson/komga.git
synced 2026-05-07 20:15:47 +02:00
49 lines
No EOL
1.3 KiB
YAML
49 lines
No EOL
1.3 KiB
YAML
version: '3.8'
|
|
|
|
services:
|
|
postgres:
|
|
image: postgres:15-alpine
|
|
container_name: komga-postgres
|
|
environment:
|
|
POSTGRES_DB: komga
|
|
POSTGRES_USER: komga
|
|
POSTGRES_PASSWORD: komga123
|
|
ports:
|
|
- "5433:5432"
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
- ./docker/postgres/init.sql:/docker-entrypoint-initdb.d/init.sql
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U komga"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
komga:
|
|
image: komga-local:1.24.3.2026060801
|
|
container_name: komga-backend
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
environment:
|
|
SPRING_PROFILES_ACTIVE: docker
|
|
KOMGA_DATABASE_TYPE: postgresql
|
|
KOMGA_DATABASE_URL: jdbc:postgresql://postgres:5432/komga?connectTimeout=30000&socketTimeout=60000
|
|
KOMGA_DATABASE_USERNAME: komga
|
|
KOMGA_DATABASE_PASSWORD: komga123
|
|
KOMGA_CONFIG_DIR: /config
|
|
KOMGA_DATABASE_POOL_SIZE: 10
|
|
KOMGA_DATABASE_MAX_POOL_SIZE: 10
|
|
SPRING_FLYWAY_ENABLED: "true"
|
|
SPRING_FLYWAY_BASELINE_ON_MIGRATE: "true"
|
|
SPRING_FLYWAY_BASELINE_VERSION: "20250730173126"
|
|
ports:
|
|
- "25600:25600"
|
|
volumes:
|
|
- komga_config:/config
|
|
- ./data:/data:ro
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
postgres_data:
|
|
komga_config: |