Compare commits
4 Commits
e64bef6ac8
...
ba5bc3b1cd
Author | SHA1 | Date | |
---|---|---|---|
ba5bc3b1cd | |||
4724dcbede | |||
d7402d46a5 | |||
54409656a2 |
2
dns.yml
2
dns.yml
@ -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
|
||||
|
@ -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
|
||||
}
|
||||
|
19
roles/docker/tasks/heyform.yml
Normal file
19
roles/docker/tasks/heyform.yml
Normal 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
|
@ -121,3 +121,7 @@
|
||||
- name: Install paperlessngx
|
||||
import_tasks: paperlessngx.yml
|
||||
tags: paperlessngx
|
||||
|
||||
- name: Install heyform
|
||||
import_tasks: heyform.yml
|
||||
tags: heyform
|
45
roles/docker/templates/heyform-compose.yml.j2
Normal file
45
roles/docker/templates/heyform-compose.yml.j2
Normal 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
|
Loading…
Reference in New Issue
Block a user