moves journex deployment from sub repo to GHCR

This commit is contained in:
2026-01-27 11:44:26 +01:00
parent 9ecc9fa5ca
commit 76642e8351
4 changed files with 81 additions and 21 deletions

View File

@@ -0,0 +1,51 @@
services:
frontend:
container_name: journex-frontend
image: ghcr.io/consider-it/journex-frontend:latest
restart: unless-stopped
networks:
- journex_net
- caddy_net
backend:
container_name: journex-backend
image: ghcr.io/consider-it/journex-backend:latest
restart: unless-stopped
env_file:
- .env
networks:
- journex_net
- caddy_net
pdf-fusion-extractor:
container_name: journex-pdf-fusion-extractor
image: ghcr.io/consider-it/journex-pdf-fusion-extractor:latest
restart: unless-stopped
volumes:
- /ansible_docker_compose/project_data/journex/pdf-fusion-extractor/output:/app/output
- /ansible_docker_compose/project_data/journex/pdf-fusion-extractor/data:/app/data:ro
environment:
PDF_FUSION_CONFIG: /app/config/config.yaml
networks:
- journex_net
extra_hosts:
- "ollama:10.20.1.2"
- "host.docker.internal:10.20.1.2"
pdf-bounding-boxes:
container_name: journex-pdf-bounding-boxes
image: ghcr.io/consider-it/journex-pdf-bounding-boxes:latest
restart: unless-stopped
volumes:
- /ansible_docker_compose/project_data/journex/pdf-bounding-boxes/bounding_boxes:/app/bounding_boxes
environment:
BOUNDING_BOX_DIR: /app/bounding_boxes
networks:
- journex_net
networks:
journex_net:
name: journex_net
driver: bridge
caddy_net:
external: true

View File

@@ -20,6 +20,13 @@
} }
registry.cortex.consider-funding.de { registry.cortex.consider-funding.de {
handle /health {
reverse_proxy https://ai-registry.neukiefer.de {
header_up Host ai-registry.neukiefer.de
header_up Authorization {env.REGISTRY_DOWNSTREAM_AUTH}
}
}
import oauth2 registry.cortex.consider-funding.de { import oauth2 registry.cortex.consider-funding.de {
reverse_proxy https://ai-registry.neukiefer.de { reverse_proxy https://ai-registry.neukiefer.de {
header_up Host ai-registry.neukiefer.de header_up Host ai-registry.neukiefer.de
@@ -36,15 +43,22 @@ pdf.consider-it.de {
pseudo.cortex.consider-funding.de { pseudo.cortex.consider-funding.de {
handle /health { handle /health {
reverse_proxy http://transcript-pseudomizer-frontend:5000 reverse_proxy http://cf-pseudomizer-frontend:5000
} }
import oauth2 pseudo.cortex.consider-funding.de { import oauth2 pseudo.cortex.consider-funding.de {
reverse_proxy http://transcript-pseudomizer-frontend:5000 reverse_proxy http://cf-pseudomizer-frontend:5000
} }
} }
enricher.cortex.consider-funding.de { enricher.cortex.consider-funding.de {
handle /health {
reverse_proxy https://ai-enricher.neukiefer.de {
header_up Host ai-enricher.neukiefer.de
header_up Authorization {env.ENRICHER_DOWNSTREAM_AUTH}
}
}
import oauth2 enricher.cortex.consider-funding.de { import oauth2 enricher.cortex.consider-funding.de {
reverse_proxy https://ai-enricher.neukiefer.de { reverse_proxy https://ai-enricher.neukiefer.de {
header_up Host ai-enricher.neukiefer.de header_up Host ai-enricher.neukiefer.de
@@ -57,10 +71,7 @@ enricher.cortex.consider-funding.de {
journex.cortex.consider-funding.de { journex.cortex.consider-funding.de {
import oauth2 journex.cortex.consider-funding.de { import oauth2 journex.cortex.consider-funding.de {
route { route {
@apiExact path /api handle /api/* {
redir @apiExact /api/
handle_path /api/* {
reverse_proxy journex-backend:7000 reverse_proxy journex-backend:7000
} }
@@ -68,9 +79,7 @@ journex.cortex.consider-funding.de {
reverse_proxy journex-backend:7000 reverse_proxy journex-backend:7000
} }
root * /srv/journex reverse_proxy journex-frontend:7500
try_files {path} /index.html
file_server
} }
} }
} }

View File

@@ -7,7 +7,7 @@ docker_compose__projects:
files_directory: ../docker_compose_applications/n8n files_directory: ../docker_compose_applications/n8n
- name: oauth2-proxy - name: oauth2-proxy
files_directory: ../docker_compose_applications/oauth2-proxy files_directory: ../docker_compose_applications/oauth2-proxy
- name: cf-journex - name: journex
files_directory: ../docker_compose_applications/cf-journex files_directory: ../docker_compose_applications/journex
- name: pseudomizer - name: pseudomizer
files_directory: ../docker_compose_applications/pseudomizer files_directory: ../docker_compose_applications/pseudomizer

View File

@@ -1,17 +1,17 @@
- name: Deploy cf-journex only - name: Deploy journex only
hosts: cit-docker-host hosts: cit-docker-host
tasks: tasks:
- name: Run docker compose down for cf-journex - name: Run docker compose down for journex
ansible.builtin.command: ansible.builtin.command:
cmd: /usr/bin/docker compose --project-directory "/ansible_docker_compose/projects/cf-journex" --project-name "cf-journex" down cmd: /usr/bin/docker compose --project-directory "/ansible_docker_compose/projects/journex" --project-name "journex" down
chdir: "/ansible_docker_compose/projects/cf-journex" chdir: "/ansible_docker_compose/projects/journex"
become: true become: true
changed_when: true changed_when: true
- name: Deploy cf-journex project files - name: Deploy journex project files
ansible.posix.synchronize: ansible.posix.synchronize:
src: "../docker_compose_applications/cf-journex/" src: "../docker_compose_applications/journex/"
dest: "/ansible_docker_compose/projects/cf-journex/" dest: "/ansible_docker_compose/projects/journex/"
mode: push mode: push
archive: false archive: false
copy_links: false copy_links: false
@@ -27,9 +27,9 @@
verify_host: true verify_host: true
become: true become: true
- name: Run docker compose up for cf-journex - name: Run docker compose up for journex
ansible.builtin.command: ansible.builtin.command:
cmd: /usr/bin/docker compose --project-directory "/ansible_docker_compose/projects/cf-journex" --project-name "cf-journex" up --detach --pull always --build --force-recreate cmd: /usr/bin/docker compose --project-directory "/ansible_docker_compose/projects/journex" --project-name "journex" up --detach --pull always --build --force-recreate
chdir: "/ansible_docker_compose/projects/cf-journex" chdir: "/ansible_docker_compose/projects/journex"
become: true become: true
changed_when: true changed_when: true