From b67378e3d1d33ea7a2d7ad8eed291fbb6cf8cc5e Mon Sep 17 00:00:00 2001 From: Phil Date: Sat, 26 Oct 2024 12:07:26 -0600 Subject: [PATCH] added pinry to stack --- roles/docker/files/Caddyfile | 4 ++++ roles/docker/tasks/main.yml | 6 +++++- roles/docker/tasks/pinry.yml | 19 +++++++++++++++++++ roles/docker/templates/pinry-compose.yml.j2 | 15 +++++++++++++++ 4 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 roles/docker/tasks/pinry.yml create mode 100644 roles/docker/templates/pinry-compose.yml.j2 diff --git a/roles/docker/files/Caddyfile b/roles/docker/files/Caddyfile index 35779ec..55a2367 100644 --- a/roles/docker/files/Caddyfile +++ b/roles/docker/files/Caddyfile @@ -2,6 +2,10 @@ auth.thesatelliteoflove.com { reverse_proxy authentik-server-1:9000 } +pin.thesatelliteoflove.com { + reverse_proxy pinry-pinry-1:80 +} + post.thesatelliteoflove.com { reverse_proxy postiz:5000 } diff --git a/roles/docker/tasks/main.yml b/roles/docker/tasks/main.yml index 5942261..d267e7d 100644 --- a/roles/docker/tasks/main.yml +++ b/roles/docker/tasks/main.yml @@ -104,4 +104,8 @@ - name: Install postiz import_tasks: postiz.yml - tags: postiz \ No newline at end of file + tags: postiz + +- name: Install pinry + import_tasks: pinry.yml + tags: pinry \ No newline at end of file diff --git a/roles/docker/tasks/pinry.yml b/roles/docker/tasks/pinry.yml new file mode 100644 index 0000000..056ca39 --- /dev/null +++ b/roles/docker/tasks/pinry.yml @@ -0,0 +1,19 @@ +- name: make pinry directories + ansible.builtin.file: + path: "{{ item}}" + state: directory + loop: + - /opt/stacks/pinry + +- name: Template out the compose file + ansible.builtin.template: + src: pinry-compose.yml.j2 + dest: /opt/stacks/pinry/compose.yml + owner: root + mode: 644 + +- name: deploy pinry stack + community.docker.docker_compose_v2: + project_src: /opt/stacks/pinry + files: + - compose.yml \ No newline at end of file diff --git a/roles/docker/templates/pinry-compose.yml.j2 b/roles/docker/templates/pinry-compose.yml.j2 new file mode 100644 index 0000000..40b1535 --- /dev/null +++ b/roles/docker/templates/pinry-compose.yml.j2 @@ -0,0 +1,15 @@ +services: + pinry: + volumes: + - pinry:/data + environment: + - SECRET_KEY=no2254XiwYFWDnt2UW6wraSbVPRdHx8wVIeBh3jeYcI= + - ALLOW_NEW_REGISTRATIONS=False + image: getpinry/pinry +volumes: + pinry: + driver: local +networks: + default: + external: true + name: lava \ No newline at end of file