diff --git a/deploy.env b/deploy.env index b4ce4d7d..e0e36608 100644 --- a/deploy.env +++ b/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 diff --git a/docker-compose.yml b/docker-compose.yml index f6270ef2..c4d56e9b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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: