From 3a73f85aa108a9d9627bf268fea3ca7bd89b0350 Mon Sep 17 00:00:00 2001 From: Phil Date: Wed, 9 Oct 2024 11:40:11 -0600 Subject: [PATCH] Added pingvin to stack --- roles/docker/files/Caddyfile | 4 ++++ roles/docker/tasks/main.yml | 6 +++++- roles/docker/tasks/pingvin.yml | 19 +++++++++++++++++++ roles/docker/tasks/stirlingpdf.yml | 6 +++--- roles/docker/templates/pingvin-compose.yml.j2 | 18 ++++++++++++++++++ 5 files changed, 49 insertions(+), 4 deletions(-) create mode 100644 roles/docker/tasks/pingvin.yml create mode 100644 roles/docker/templates/pingvin-compose.yml.j2 diff --git a/roles/docker/files/Caddyfile b/roles/docker/files/Caddyfile index 5490637..5622d02 100644 --- a/roles/docker/files/Caddyfile +++ b/roles/docker/files/Caddyfile @@ -6,6 +6,10 @@ tasks.thesatelliteoflove.com { reverse_proxy authentik-server-1:9000 } +files.thesatelliteoflove.com { + reverse_proxy pingvin-pingvin-share-1:3000 +} + git.thesatelliteoflove.com { reverse_proxy gitea:3000 } diff --git a/roles/docker/tasks/main.yml b/roles/docker/tasks/main.yml index 9280ef7..2aa3861 100644 --- a/roles/docker/tasks/main.yml +++ b/roles/docker/tasks/main.yml @@ -96,4 +96,8 @@ - name: Install stirlingpdf import_tasks: stirlingpdf.yml - tags: stirlingpdf \ No newline at end of file + tags: stirlingpdf + +- name: Install pingvin + import_tasks: pingvin.yml + tags: pingvin \ No newline at end of file diff --git a/roles/docker/tasks/pingvin.yml b/roles/docker/tasks/pingvin.yml new file mode 100644 index 0000000..80f82cc --- /dev/null +++ b/roles/docker/tasks/pingvin.yml @@ -0,0 +1,19 @@ +- name: make pingvin directories + ansible.builtin.file: + path: "{{ item}}" + state: directory + loop: + - /opt/stacks/pingvin + +- name: Template out the compose file + ansible.builtin.template: + src: pingvin-compose.yml.j2 + dest: /opt/stacks/pingvin/compose.yml + owner: root + mode: 644 + +- name: deploy pingvin stack + community.docker.docker_compose_v2: + project_src: /opt/stacks/pingvin + files: + - compose.yml \ No newline at end of file diff --git a/roles/docker/tasks/stirlingpdf.yml b/roles/docker/tasks/stirlingpdf.yml index 4528b3e..9a257ef 100644 --- a/roles/docker/tasks/stirlingpdf.yml +++ b/roles/docker/tasks/stirlingpdf.yml @@ -1,13 +1,13 @@ -- name: make stirling directories +- name: make StirlingPDF directories ansible.builtin.file: path: "{{ item}}" state: directory loop: - - /opt/stacks/stirling + - /opt/stacks/stirlingpdf - name: Template out the compose file ansible.builtin.template: - src: stirling-compose.yml.j2 + src: striling-compose.yml.j2 dest: /opt/stacks/stirling/compose.yml owner: root mode: 644 diff --git a/roles/docker/templates/pingvin-compose.yml.j2 b/roles/docker/templates/pingvin-compose.yml.j2 new file mode 100644 index 0000000..82d99eb --- /dev/null +++ b/roles/docker/templates/pingvin-compose.yml.j2 @@ -0,0 +1,18 @@ +services: + pingvin-share: + image: stonith404/pingvin-share + restart: unless-stopped + environment: + - TRUST_PROXY=true + extra_hosts: + - 'auth.thesatelliteoflove.com:172.20.0.5' + volumes: + - data:/opt/app/backend/data + - images:/opt/app/frontend/public/img +volumes: + images: + data: +networks: + default: + external: true + name: lava \ No newline at end of file