feat: parameterize the postgres password
This commit is contained in:
parent
773f17e524
commit
7f2b080ba6
13
deploy.env
13
deploy.env
|
|
@ -1,11 +1,14 @@
|
||||||
# This file is a template for docker compose deployment
|
# This file is a template for docker compose deployment
|
||||||
# Copy this file to .env and change the values as needed
|
# Copy this file to .env and change the values as needed
|
||||||
|
|
||||||
|
# PostgreSQL default user password
|
||||||
|
POSTGRES_PASSWORD="changepassword"
|
||||||
|
|
||||||
# AppFlowy Cloud
|
# AppFlowy Cloud
|
||||||
## URL that connects to the gotrue docker container
|
## URL that connects to the gotrue docker container
|
||||||
APPFLOWY_GOTRUE_BASE_URL=http://gotrue:9999
|
APPFLOWY_GOTRUE_BASE_URL=http://gotrue:9999
|
||||||
## URL that connects to the postgres docker container
|
## 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_ACCESS_CONTROL=true
|
||||||
APPFLOWY_WEBSOCKET_MAILBOX_SIZE=6000
|
APPFLOWY_WEBSOCKET_MAILBOX_SIZE=6000
|
||||||
APPFLOWY_DATABASE_MAX_CONNECTIONS=40
|
APPFLOWY_DATABASE_MAX_CONNECTIONS=40
|
||||||
|
|
@ -127,17 +130,17 @@ NGINX_TLS_PORT=443
|
||||||
APPFLOWY_AI_OPENAI_API_KEY=
|
APPFLOWY_AI_OPENAI_API_KEY=
|
||||||
APPFLOWY_AI_SERVER_PORT=5001
|
APPFLOWY_AI_SERVER_PORT=5001
|
||||||
APPFLOWY_AI_SERVER_HOST=ai
|
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_LOCAL_AI_TEST_ENABLED=false
|
||||||
|
|
||||||
# AppFlowy History
|
# AppFlowy History
|
||||||
APPFLOWY_GRPC_HISTORY_ADDRS=http://localhost:50051
|
APPFLOWY_GRPC_HISTORY_ADDRS=http://localhost:50051
|
||||||
APPFLOWY_HISTORY_REDIS_URL=redis://redis:6379
|
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
|
||||||
APPFLOWY_INDEXER_ENABLED=true
|
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_INDEXER_REDIS_URL=redis://redis:6379
|
||||||
|
|
||||||
# AppFlowy Collaborate
|
# AppFlowy Collaborate
|
||||||
|
|
@ -146,7 +149,7 @@ APPFLOWY_COLLABORATE_REMOVE_BATCH_SIZE=100
|
||||||
|
|
||||||
# AppFlowy Worker
|
# AppFlowy Worker
|
||||||
APPFLOWY_WORKER_REDIS_URL=redis://redis:6379
|
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
|
||||||
APPFLOWY_WEB_URL=http://localhost:3000
|
APPFLOWY_WEB_URL=http://localhost:3000
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue