add heyform to stack
This commit is contained in:
parent
4724dcbede
commit
ba5bc3b1cd
@ -73,3 +73,7 @@ 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
|
@ -120,4 +120,8 @@
|
||||
|
||||
- name: Install paperlessngx
|
||||
import_tasks: paperlessngx.yml
|
||||
tags: paperlessngx
|
||||
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