From a6559daeb143017937789306ed1303030ff484f5 Mon Sep 17 00:00:00 2001 From: Stiftung Development Date: Wed, 17 Sep 2025 13:19:35 +0200 Subject: [PATCH] Clean up docker-compose configuration - Archive deploy-production directory as deploy-production-archived (legacy) - Add DOCKER_COMPOSE_README.md for documentation - Main configuration now uses compose.yml with working Paperless integration - Paperless API URL configured as https://vhtv-stiftung.de/paperless --- DOCKER_COMPOSE_README.md | 37 +++++++++++++++++++ .../MIGRATION_PLAN.md | 0 .../deploy.sh | 0 .../docker-compose.prod.yml | 0 .../fix-paths.sh | 0 .../migrate-data.sh | 0 .../nginx.conf | 0 .../server-setup.sh | 0 .../setup-paperless.sh | 0 9 files changed, 37 insertions(+) create mode 100644 DOCKER_COMPOSE_README.md rename {deploy-production => deploy-production-archived}/MIGRATION_PLAN.md (100%) rename {deploy-production => deploy-production-archived}/deploy.sh (100%) rename {deploy-production => deploy-production-archived}/docker-compose.prod.yml (100%) rename {deploy-production => deploy-production-archived}/fix-paths.sh (100%) rename {deploy-production => deploy-production-archived}/migrate-data.sh (100%) rename {deploy-production => deploy-production-archived}/nginx.conf (100%) rename {deploy-production => deploy-production-archived}/server-setup.sh (100%) rename {deploy-production => deploy-production-archived}/setup-paperless.sh (100%) diff --git a/DOCKER_COMPOSE_README.md b/DOCKER_COMPOSE_README.md new file mode 100644 index 0000000..16739be --- /dev/null +++ b/DOCKER_COMPOSE_README.md @@ -0,0 +1,37 @@ +# Docker Compose Configuration + +## Active Configuration +- **Primary**: compose.yml (production setup with all services) +- **Development**: compose.dev.yml (development setup) + +## Archived Files +- deploy-production/ directory contains legacy production deployment files + +## Usage +```bash +# Start all services +docker-compose up -d + +# Stop all services +docker-compose down +``` + +## Environment Variables +Configure in .env file. Key variables: +- PAPERLESS_API_URL=https://vhtv-stiftung.de/paperless +- PAPERLESS_API_TOKEN=your_api_token_here + +## Paperless Integration +The system integrates with Paperless NGX for document management: +- Documents are filtered by tags (Destinatäre, Land/Pächter, Administration) +- API calls use external URL for reliability +- Authentication via API token + +## Services +- **web**: Django application (port 8081) +- **worker**: Celery worker for background tasks +- **beat**: Celery beat scheduler +- **db**: PostgreSQL database +- **redis**: Redis for caching and task queue +- **paperless**: Paperless NGX document management +- **grampsweb**: Gramps genealogy web interface \ No newline at end of file diff --git a/deploy-production/MIGRATION_PLAN.md b/deploy-production-archived/MIGRATION_PLAN.md similarity index 100% rename from deploy-production/MIGRATION_PLAN.md rename to deploy-production-archived/MIGRATION_PLAN.md diff --git a/deploy-production/deploy.sh b/deploy-production-archived/deploy.sh similarity index 100% rename from deploy-production/deploy.sh rename to deploy-production-archived/deploy.sh diff --git a/deploy-production/docker-compose.prod.yml b/deploy-production-archived/docker-compose.prod.yml similarity index 100% rename from deploy-production/docker-compose.prod.yml rename to deploy-production-archived/docker-compose.prod.yml diff --git a/deploy-production/fix-paths.sh b/deploy-production-archived/fix-paths.sh similarity index 100% rename from deploy-production/fix-paths.sh rename to deploy-production-archived/fix-paths.sh diff --git a/deploy-production/migrate-data.sh b/deploy-production-archived/migrate-data.sh similarity index 100% rename from deploy-production/migrate-data.sh rename to deploy-production-archived/migrate-data.sh diff --git a/deploy-production/nginx.conf b/deploy-production-archived/nginx.conf similarity index 100% rename from deploy-production/nginx.conf rename to deploy-production-archived/nginx.conf diff --git a/deploy-production/server-setup.sh b/deploy-production-archived/server-setup.sh similarity index 100% rename from deploy-production/server-setup.sh rename to deploy-production-archived/server-setup.sh diff --git a/deploy-production/setup-paperless.sh b/deploy-production-archived/setup-paperless.sh similarity index 100% rename from deploy-production/setup-paperless.sh rename to deploy-production-archived/setup-paperless.sh