Compare commits

..

4 Commits

Author SHA1 Message Date
ba5bc3b1cd add heyform to stack 2024-11-11 11:58:14 -07:00
4724dcbede add dns record for repair cafe site 2024-11-11 11:57:54 -07:00
d7402d46a5 add static site hosting for repair cafe 2024-11-11 11:57:32 -07:00
54409656a2 update static site hosting for sub directories 2024-11-11 11:57:04 -07:00
5 changed files with 80 additions and 2 deletions

View File

@ -29,6 +29,8 @@
dns_records:
- name: "forms"
ip: "152.53.36.98"
- name: "repair"
ip: "152.53.36.98"
tasks:
- name: Add A records for subdomains of each domain

View File

@ -35,7 +35,7 @@ git.thesatelliteoflove.com {
}
thesatelliteoflove.com {
root * /srv
root * /srv/tsol
file_server
}
@ -69,3 +69,11 @@ pdftools.thesatelliteoflove.com:80 {
}
}
repair.nerder.land {
root * /srv/repair
file_server
}
forms.nerder.land {
reverse_proxy heyform-heyform-1:8000
}

View File

@ -0,0 +1,19 @@
- name: make heyform directories
ansible.builtin.file:
path: "{{ item}}"
state: directory
loop:
- /opt/stacks/heyform
- name: Template out the compose file
ansible.builtin.template:
src: heyform-compose.yml.j2
dest: /opt/stacks/heyform/compose.yml
owner: root
mode: 644
- name: deploy heyform stack
community.docker.docker_compose_v2:
project_src: /opt/stacks/heyform
files:
- compose.yml

View File

@ -120,4 +120,8 @@
- name: Install paperlessngx
import_tasks: paperlessngx.yml
tags: paperlessngx
tags: paperlessngx
- name: Install heyform
import_tasks: heyform.yml
tags: heyform

View File

@ -0,0 +1,45 @@
services:
heyform:
image: heyform/community-edition:latest
restart: always
volumes:
# Persist uploaded images
- assets:/app/static/upload
depends_on:
- mongo
- keydb
environment:
APP_HOMEPAGE_URL: http://forms.nerder.land
SESSION_KEY: {{ heyform_session_key }}
FORM_ENCRYPTION_KEY: {{ heyform_encryption_key }}
MONGO_URI: 'mongodb://mongo:27017/heyform'
REDIS_HOST: keydb
REDIS_PORT: 6379
mongo:
image: percona/percona-server-mongodb:4.4
restart: always
volumes:
# Persist MongoDB data
- database:/data/db
keydb:
image: eqalpha/keydb:latest
restart: always
command: keydb-server --appendonly yes
volumes:
# Persist KeyDB data
- keydb:/data
volumes:
assets:
driver: local
database:
driver: local
keydb:
driver: local
networks:
default:
external: true
name: lava