feat: add env var and docs for admin frontend
This commit is contained in:
parent
cfe9d79ad6
commit
8e4108a4b2
17
deploy.env
17
deploy.env
|
|
@ -1,11 +1,18 @@
|
|||
# GoTrue URL that the appflowy service will use to connect to gotrue
|
||||
# In docker environment, `gotrue` is the hostname of the gotrue service
|
||||
APPFLOWY_GOTRUE_BASE_URL=http://gotrue:9999
|
||||
APPFLOWY_DATABASE_URL=postgres://postgres:password@postgres:5432/postgres
|
||||
|
||||
# This file is a template for docker compose deployment
|
||||
# Copy this file to .env and change the values as needed
|
||||
|
||||
# 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
|
||||
|
||||
# admin frontend
|
||||
## URL that connects to redis docker container
|
||||
ADMIN_FRONTEND_REDIS_URL=redis://redis:6379
|
||||
## URL that connects to gotrue docker container
|
||||
ADMIN_FRONTEND_GOTRUE_URL=http://gotrue:9999
|
||||
|
||||
# authentication key, change this and keep the key safe and secret
|
||||
# self defined key, you can use any string
|
||||
GOTRUE_JWT_SECRET=hello456
|
||||
|
|
|
|||
|
|
@ -115,6 +115,10 @@ services:
|
|||
context: .
|
||||
dockerfile: ./admin_frontend/Dockerfile
|
||||
image: appflowyinc/admin_frontend:${BACKEND_VERSION:-latest}
|
||||
environment:
|
||||
- RUST_LOG=${RUST_LOG:-info}
|
||||
- ADMIN_FRONTEND_REDIS_URL=${ADMIN_FRONTEND_REDIS_URL:-redis://redis:6379}
|
||||
- ADMIN_FRONTEND_GOTRUE_URL=${ADMIN_FRONTEND_GOTRUE_URL:-http://gotrue:9999}
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
|
|
|
|||
Loading…
Reference in New Issue