add transcript-api + transcript-frontend
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
}
|
||||
|
||||
pseudo.cortex.consider-funding.de {
|
||||
import oauth2_protect pseudo.cortex.consider-funding.de http://10.20.0.2:5000
|
||||
import oauth2_protect pseudo.cortex.consider-funding.de http://transcript-anonymizer-frontend:5000
|
||||
}
|
||||
|
||||
# transcript-prompter
|
||||
@@ -34,7 +34,7 @@ p-8002.cortex.consider-funding.de {
|
||||
|
||||
# pseudomizer
|
||||
p-8003.cortex.consider-funding.de {
|
||||
reverse_proxy http://10.20.0.2:8003
|
||||
reverse_proxy http://transcript-anonymizer:8003
|
||||
}
|
||||
|
||||
pdf.consider-it.de {
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
# API-Metadaten
|
||||
APP_NAME=Transcript Anonymizer API
|
||||
APP_VERSION=1.0.0
|
||||
|
||||
# Uploads und Limits
|
||||
UPLOAD_FOLDER=uploads
|
||||
MAX_FILE_SIZE=16777216
|
||||
ALLOWED_EXTENSIONS=["docx","txt"]
|
||||
|
||||
# Pfad zur Konfigurationsdatei (für cf_persons/labels/excluded_words)
|
||||
CONFIG_JSON_PATH=app/config/config.json
|
||||
|
||||
# Ausgabe-Verzeichnis für Reports/Tests
|
||||
API_OUTPUT_DIR=output
|
||||
|
||||
# Logging
|
||||
LOG_LEVEL=INFO
|
||||
ACCESS_LOG_LEVEL=INFO
|
||||
|
||||
LOG_LEVEL=INFO # oder DEBUG/WARNING/ERROR
|
||||
ACCESS_LOG_LEVEL=INFO # Level nur für Uvicorn-Access-Logs
|
||||
@@ -0,0 +1,11 @@
|
||||
services:
|
||||
transcript-anonymizer:
|
||||
image: ghcr.io/consider-it/transcript-anonymizer-api:latest
|
||||
restart: unless-stopped
|
||||
env_file: .env
|
||||
volumes:
|
||||
- /ansible_docker_compose/project_data/transcript-anonymizer-api/uploads:/app/uploads
|
||||
networks: [caddy_net]
|
||||
networks:
|
||||
caddy_net:
|
||||
external: true
|
||||
@@ -0,0 +1,6 @@
|
||||
# Example configuration for the transcript anonymizer frontend
|
||||
FLASK_ENV=production
|
||||
ANONYMIZER_API_URL=http://transcript-anonymizer:8003/api/v1/anonymize
|
||||
ANONYMIZER_HEALTH_URL=http://transcript-anonymizer:8003/api/v1/health
|
||||
# Optional: override if the frontend expects a different port
|
||||
# PORT=5000
|
||||
@@ -0,0 +1,13 @@
|
||||
services:
|
||||
transcript-anonymizer-frontend:
|
||||
image: ghcr.io/consider-it/transcript-anonymizer-frontend:latest
|
||||
restart: unless-stopped
|
||||
env_file: .env
|
||||
environment:
|
||||
ANONYMIZER_API_URL: http://transcript-anonymizer:8003/api/v1/anonymize
|
||||
ANONYMIZER_HEALTH_URL: http://transcript-anonymizer:8003/api/v1/health
|
||||
networks: [caddy_net]
|
||||
|
||||
networks:
|
||||
caddy_net:
|
||||
external: true
|
||||
Reference in New Issue
Block a user