fix: update docker from source setup with new env variables and use env variables directly in docker-compose (#818)

* 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

* feat: short survey url support in docker compose

* fix: add envs to prod script

* chore: reorder env vars for uniformity

* update description for SHORT_SURVEY_BASE_URL

* fix: add ASSET_PREFIX_URL to prod script & docker compose

---------

Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
This commit is contained in:
Shubham Palriwala
2023-10-05 14:34:34 +05:30
committed by GitHub
parent 940332ced9
commit cb8c08dd1f
11 changed files with 206 additions and 161 deletions

View File

@@ -10,7 +10,10 @@
WEBAPP_URL=http://localhost:3000
SHORT_SURVEY_BASE_URL=http://localhost:3000/i
SURVEY_BASE_URL=http://localhost:3000/i
# Set this if you want to have a shorter link for surveys
SHORT_SURVEY_BASE_URL=
##############
# DATABASE #
@@ -18,13 +21,6 @@ SHORT_SURVEY_BASE_URL=http://localhost:3000/i
DATABASE_URL='postgresql://postgres:postgres@localhost:5432/formbricks?schema=public'
# Uncomment to enable a dedicated connection pool for Prisma using Prisma Data Proxy
# Cold boots will be faster and you'll be able to scale your DB independently of your app.
# @see https://www.prisma.io/docs/data-platform/data-proxy/use-data-proxy
# PRISMA_GENERATE_DATAPROXY=true
# i dont think we use it so ask Matti and remove it
PRISMA_GENERATE_DATAPROXY=
###############
# NEXT AUTH #
###############
@@ -94,6 +90,15 @@ GOOGLE_AUTH_ENABLED=0
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
# Cron Secret
CRON_SECRET=
# Encryption key
# You can use: `openssl rand -base64 16` to generate one
FORMBRICKS_ENCRYPTION_KEY=
# Configure this when you want to ship JS & CSS files from a complete URL instead of the current domain
# ASSET_PREFIX_URL=
# Stripe Billing Variables
STRIPE_SECRET_KEY=
@@ -104,12 +109,4 @@ NEXT_PUBLIC_FORMBRICKS_API_HOST=
NEXT_PUBLIC_FORMBRICKS_ENVIRONMENT_ID=
NEXT_PUBLIC_FORMBRICKS_ONBOARDING_SURVEY_ID=
# Cron Secret
CRON_SECRET=
# Encryption key
# You can use: `openssl rand -base64 16` to generate one
FORMBRICKS_ENCRYPTION_KEY=
SHORT_SURVEY_BASE_URL=
*/
*/