* fix: docker env parsing & response bug when built w docker * chore: bring back env example * fix: docker compose envs are now single place defined * add: renaming of .env in docs * remove: existence of prisma_generate_data_proxy * fix: use newer env vars and a smarter way to handle existing .env file * fix: remove text to remove existing .enb * fix: remove comments, local testing, and mention of more updating via echo in prod script * fix: env ending * fix: finalllyyy the docker compose works * wip * fix: update self host docker compose * fix: echo log rename
Self Host Formbricks Production Instance
Follow this guide to get your Formbricks instance up and running with a Postgres DB and SSL certificate using a single script:
Requirements
Before you proceed, make sure you have the following:
-
A Linux Ubuntu Virtual Machine deployed with SSH access.
-
An A record set up to connect a custom domain to your instance. Formbricks will automatically create an SSL certificate for your domain using Let's Encrypt.
Single Command Setup
Copy and paste the following command into your terminal:
/bin/sh -c "$(curl -fsSL https://raw.githubusercontent.com/formbricks/formbricks/main/docker/production.sh)"
The script will prompt you for the following information:
-
Overwriting Docker GPG Keys: If Docker GPG keys already exist, the script will ask if you want to overwrite them.
-
Email Address: Provide your email address for SSL certificate registration with Let's Encrypt.
-
Domain Name: Enter the domain name that Traefik will use to create the SSL certificate and forward requests to Formbricks.
That's it! After running the command and providing the required information, visit the domain name you entered, and you should see the Formbricks home wizard!