From 7f2b080ba6b6b882cde7e47bf09f9f4d6b0c4c67 Mon Sep 17 00:00:00 2001 From: ThanatosDi Date: Fri, 18 Oct 2024 09:08:09 +0800 Subject: [PATCH] feat: parameterize the postgres password --- deploy.env | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/deploy.env b/deploy.env index 986b0ab1..b9278181 100644 --- a/deploy.env +++ b/deploy.env @@ -1,11 +1,14 @@ # This file is a template for docker compose deployment # Copy this file to .env and change the values as needed +# PostgreSQL default user password +POSTGRES_PASSWORD="changepassword" + # AppFlowy Cloud ## URL that connects to the gotrue docker container APPFLOWY_GOTRUE_BASE_URL=http://gotrue:9999 ## URL that connects to the postgres docker container -APPFLOWY_DATABASE_URL=postgres://postgres:password@postgres:5432/postgres +APPFLOWY_DATABASE_URL=postgres://postgres:${POSTGRES_PASSWORD}@postgres:5432/postgres APPFLOWY_ACCESS_CONTROL=true APPFLOWY_WEBSOCKET_MAILBOX_SIZE=6000 APPFLOWY_DATABASE_MAX_CONNECTIONS=40 @@ -127,17 +130,17 @@ NGINX_TLS_PORT=443 APPFLOWY_AI_OPENAI_API_KEY= APPFLOWY_AI_SERVER_PORT=5001 APPFLOWY_AI_SERVER_HOST=ai -APPFLOWY_AI_DATABASE_URL=postgresql+psycopg://postgres:password@postgres:5432/postgres +APPFLOWY_AI_DATABASE_URL=postgresql+psycopg://postgres:${POSTGRES_PASSWORD}@postgres:5432/postgres APPFLOWY_LOCAL_AI_TEST_ENABLED=false # AppFlowy History APPFLOWY_GRPC_HISTORY_ADDRS=http://localhost:50051 APPFLOWY_HISTORY_REDIS_URL=redis://redis:6379 -APPFLOWY_HISTORY_DATABASE_URL=postgres://postgres:password@postgres:5432/postgres +APPFLOWY_HISTORY_DATABASE_URL=postgres://postgres:${POSTGRES_PASSWORD}@postgres:5432/postgres # AppFlowy Indexer APPFLOWY_INDEXER_ENABLED=true -APPFLOWY_INDEXER_DATABASE_URL=postgres://postgres:password@postgres:5432/postgres +APPFLOWY_INDEXER_DATABASE_URL=postgres://postgres:${POSTGRES_PASSWORD}@postgres:5432/postgres APPFLOWY_INDEXER_REDIS_URL=redis://redis:6379 # AppFlowy Collaborate @@ -146,7 +149,7 @@ APPFLOWY_COLLABORATE_REMOVE_BATCH_SIZE=100 # AppFlowy Worker APPFLOWY_WORKER_REDIS_URL=redis://redis:6379 -APPFLOWY_WORKER_DATABASE_URL=postgres://postgres:password@postgres:5432/postgres +APPFLOWY_WORKER_DATABASE_URL=postgres://postgres:${POSTGRES_PASSWORD}@postgres:5432/postgres # AppFlowy Web APPFLOWY_WEB_URL=http://localhost:3000