From 4dabb97c59db8bc21db7202666d714677e48fb3b Mon Sep 17 00:00:00 2001 From: Jannik Kramer Date: Thu, 15 Jan 2026 12:06:47 +0100 Subject: [PATCH] imports journex --- README.md | 8 +++++ .../hetzner/host_vars/cit-docker-host.yaml | 2 ++ playbooks/06-deploy-cf-journex.yml | 35 +++++++++++++++++++ 3 files changed, 45 insertions(+) create mode 100644 playbooks/06-deploy-cf-journex.yml diff --git a/README.md b/README.md index 26e1206..fe4284b 100644 --- a/README.md +++ b/README.md @@ -57,6 +57,14 @@ Deploy or refresh Docker Compose applications after configuration changes or whe ansible-playbook -i inventories/hetzner playbooks/04-compose-up.yml ``` +### Deploy cf-journex only + +Deploy only the `cf-journex` Docker Compose stack without touching other services. + +```sh +ansible-playbook -i inventories/hetzner playbooks/06-deploy-cf-journex.yml +``` + ### Rebuild Caddy Rebuild and reload Caddy only. Useful when reverse proxy configuration changed and full service restarts should be avoided. diff --git a/inventories/hetzner/host_vars/cit-docker-host.yaml b/inventories/hetzner/host_vars/cit-docker-host.yaml index 7b0a75b..fb69fd4 100644 --- a/inventories/hetzner/host_vars/cit-docker-host.yaml +++ b/inventories/hetzner/host_vars/cit-docker-host.yaml @@ -11,3 +11,5 @@ docker_compose__projects: files_directory: ../docker_compose_applications/transcript-pseudomizer-api - name: transcript-pseudomizer-frontend files_directory: ../docker_compose_applications/transcript-pseudomizer-frontend + # - name: cf-journex + # files_directory: ../docker_compose_applications/cf-journex diff --git a/playbooks/06-deploy-cf-journex.yml b/playbooks/06-deploy-cf-journex.yml new file mode 100644 index 0000000..f1788d2 --- /dev/null +++ b/playbooks/06-deploy-cf-journex.yml @@ -0,0 +1,35 @@ +- name: Deploy cf-journex only + hosts: cit-docker-host + tasks: + - name: Run docker compose down for cf-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" + become: true + changed_when: true + + - name: Deploy cf-journex project files + ansible.posix.synchronize: + src: "../docker_compose_applications/cf-journex/" + dest: "/ansible_docker_compose/projects/cf-journex/" + mode: push + archive: false + copy_links: false + delete: true + dirs: false + existing_only: false + recursive: true + owner: false + group: false + perms: true + links: true + times: false + verify_host: true + become: true + + - name: Run docker compose up for cf-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" + become: true + changed_when: true