moves journex deployment from sub repo to GHCR
This commit is contained in:
51
docker_compose_applications/journex/compose.yaml
Normal file
51
docker_compose_applications/journex/compose.yaml
Normal 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
|
||||
@@ -20,6 +20,13 @@
|
||||
}
|
||||
|
||||
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 {
|
||||
reverse_proxy https://ai-registry.neukiefer.de {
|
||||
header_up Host ai-registry.neukiefer.de
|
||||
@@ -36,15 +43,22 @@ pdf.consider-it.de {
|
||||
|
||||
pseudo.cortex.consider-funding.de {
|
||||
handle /health {
|
||||
reverse_proxy http://transcript-pseudomizer-frontend:5000
|
||||
reverse_proxy http://cf-pseudomizer-frontend:5000
|
||||
}
|
||||
|
||||
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 {
|
||||
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 {
|
||||
reverse_proxy https://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 {
|
||||
import oauth2 journex.cortex.consider-funding.de {
|
||||
route {
|
||||
@apiExact path /api
|
||||
redir @apiExact /api/
|
||||
|
||||
handle_path /api/* {
|
||||
handle /api/* {
|
||||
reverse_proxy journex-backend:7000
|
||||
}
|
||||
|
||||
@@ -68,9 +79,7 @@ journex.cortex.consider-funding.de {
|
||||
reverse_proxy journex-backend:7000
|
||||
}
|
||||
|
||||
root * /srv/journex
|
||||
try_files {path} /index.html
|
||||
file_server
|
||||
reverse_proxy journex-frontend:7500
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@ docker_compose__projects:
|
||||
files_directory: ../docker_compose_applications/n8n
|
||||
- name: oauth2-proxy
|
||||
files_directory: ../docker_compose_applications/oauth2-proxy
|
||||
- name: cf-journex
|
||||
files_directory: ../docker_compose_applications/cf-journex
|
||||
- name: journex
|
||||
files_directory: ../docker_compose_applications/journex
|
||||
- name: pseudomizer
|
||||
files_directory: ../docker_compose_applications/pseudomizer
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
- name: Deploy cf-journex only
|
||||
- name: Deploy journex only
|
||||
hosts: cit-docker-host
|
||||
tasks:
|
||||
- name: Run docker compose down for cf-journex
|
||||
- name: Run docker compose down for journex
|
||||
ansible.builtin.command:
|
||||
cmd: /usr/bin/docker compose --project-directory "/ansible_docker_compose/projects/cf-journex" --project-name "cf-journex" down
|
||||
chdir: "/ansible_docker_compose/projects/cf-journex"
|
||||
cmd: /usr/bin/docker compose --project-directory "/ansible_docker_compose/projects/journex" --project-name "journex" down
|
||||
chdir: "/ansible_docker_compose/projects/journex"
|
||||
become: true
|
||||
changed_when: true
|
||||
|
||||
- name: Deploy cf-journex project files
|
||||
- name: Deploy journex project files
|
||||
ansible.posix.synchronize:
|
||||
src: "../docker_compose_applications/cf-journex/"
|
||||
dest: "/ansible_docker_compose/projects/cf-journex/"
|
||||
src: "../docker_compose_applications/journex/"
|
||||
dest: "/ansible_docker_compose/projects/journex/"
|
||||
mode: push
|
||||
archive: false
|
||||
copy_links: false
|
||||
@@ -27,9 +27,9 @@
|
||||
verify_host: true
|
||||
become: true
|
||||
|
||||
- name: Run docker compose up for cf-journex
|
||||
- name: Run docker compose up for journex
|
||||
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
|
||||
chdir: "/ansible_docker_compose/projects/cf-journex"
|
||||
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/journex"
|
||||
become: true
|
||||
changed_when: true
|
||||
Reference in New Issue
Block a user