added pinry to stack

This commit is contained in:
Phil 2024-10-26 12:07:26 -06:00
parent c9d3fa0397
commit b67378e3d1
4 changed files with 43 additions and 1 deletions

View File

@ -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
}

View File

@ -105,3 +105,7 @@
- name: Install postiz
import_tasks: postiz.yml
tags: postiz
- name: Install pinry
import_tasks: pinry.yml
tags: pinry

View File

@ -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

View File

@ -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