fix heyform
This commit is contained in:
@@ -2,47 +2,53 @@
|
|||||||
# slogan: Allows anyone to create engaging conversational forms for surveys, questionnaires, quizzes, and polls. No coding skills required.
|
# slogan: Allows anyone to create engaging conversational forms for surveys, questionnaires, quizzes, and polls. No coding skills required.
|
||||||
# tags: form, builder, forms, survey, quiz, open source, self-hosted, docker
|
# tags: form, builder, forms, survey, quiz, open source, self-hosted, docker
|
||||||
# logo: svgs/heyform.svg
|
# logo: svgs/heyform.svg
|
||||||
# port: 9513
|
# port: 8000
|
||||||
|
|
||||||
networks:
|
|
||||||
keydb: null
|
|
||||||
mongo: null
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
heyform:
|
heyform:
|
||||||
image: 'heyform/community-edition:latest'
|
image: heyform/community-edition:latest
|
||||||
restart: always
|
|
||||||
volumes:
|
volumes:
|
||||||
- 'assets:/app/static/upload'
|
- heyform-assets:/app/static/upload
|
||||||
depends_on:
|
depends_on:
|
||||||
- mongo
|
mongo:
|
||||||
- keydb
|
condition: service_healthy
|
||||||
ports:
|
keydb:
|
||||||
- '9513:8000'
|
condition: service_healthy
|
||||||
environment:
|
environment:
|
||||||
- SERVICE_FQDN_HEYFORM_9513
|
- SERVICE_FQDN_HEYFORM_8000
|
||||||
- 'APP_HOMEPAGE_URL=${SERVICE_FQDN_HEYFORM_9513}'
|
- APP_HOMEPAGE_URL=${SERVICE_FQDN_HEYFORM}
|
||||||
- 'SESSION_KEY=${SERVICE_BASE64_64}'
|
- SESSION_KEY=${SERVICE_BASE64_64_SESSION}
|
||||||
- 'FORM_ENCRYPTION_KEY=${SERVICE_BASE64_64}'
|
- FORM_ENCRYPTION_KEY=${SERVICE_BASE64_64_FORM}
|
||||||
- "MONGO_URI='mongodb://mongo:27017/heyform'"
|
- MONGO_URI=mongodb://mongo:27017/heyform
|
||||||
- REDIS_HOST=keydb
|
- REDIS_HOST=keydb
|
||||||
- REDIS_PORT=6379
|
- REDIS_PORT=6379
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://127.0.0.1:8000/health"]
|
test: ["CMD-SHELL", "wget -qO- http://127.0.0.1:8000 || exit 1"]
|
||||||
interval: 2s
|
interval: 5s
|
||||||
timeout: 10s
|
timeout: 5s
|
||||||
retries: 15
|
retries: 3
|
||||||
|
|
||||||
mongo:
|
mongo:
|
||||||
image: 'percona/percona-server-mongodb:4.4'
|
image: percona/percona-server-mongodb:latest
|
||||||
restart: always
|
|
||||||
volumes:
|
volumes:
|
||||||
- 'mongo:/data/db'
|
- heyform-mongo-data:/data/db
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD-SHELL", "echo 'ok' > /dev/null 2>&1"]
|
||||||
|
interval: 5s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 10
|
||||||
|
start_period: 5s
|
||||||
|
|
||||||
keydb:
|
keydb:
|
||||||
image: 'eqalpha/keydb:latest'
|
image: eqalpha/keydb:latest
|
||||||
restart: always
|
command: keydb-server --appendonly yes
|
||||||
command: 'keydb-server --appendonly yes'
|
environment:
|
||||||
|
- KEYDB_PASSWORD=${SERVICE_PASSWORD_KEYDB}
|
||||||
volumes:
|
volumes:
|
||||||
- 'keydb:/data'
|
- heyform-keydb-data:/data
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD-SHELL", "keydb-cli", "--pass", "${SERVICE_PASSWORD_KEYDB}", "ping"]
|
||||||
|
interval: 5s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 10
|
||||||
|
start_period: 5s
|
||||||
|
|||||||
Reference in New Issue
Block a user