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