chore: fix ai docker compose (#598)
This commit is contained in:
parent
45bfcc0a31
commit
da9b9d730e
|
|
@ -113,6 +113,7 @@ CLOUDFLARE_TUNNEL_TOKEN=
|
|||
# AppFlowy AI
|
||||
APPFLOWY_AI_OPENAI_API_KEY=
|
||||
APPFLOWY_AI_SERVER_PORT=5001
|
||||
APPFLOWY_AI_DATABASE_URL=postgresql+psycopg://postgres:password@postgres:5432/postgres
|
||||
|
||||
# AppFlowy History
|
||||
APPFLOWY_HISTORY_URL=http://history:50051
|
||||
|
|
|
|||
1
dev.env
1
dev.env
|
|
@ -101,6 +101,7 @@ CLOUDFLARE_TUNNEL_TOKEN=
|
|||
# AppFlowy AI
|
||||
APPFLOWY_AI_OPENAI_API_KEY=
|
||||
APPFLOWY_AI_SERVER_PORT=5001
|
||||
APPFLOWY_AI_DATABASE_URL=postgresql+psycopg://postgres:password@postgres:5432/postgres
|
||||
|
||||
# AppFlowy History
|
||||
APPFLOWY_HISTORY_URL=http://history:50051
|
||||
|
|
|
|||
|
|
@ -41,7 +41,6 @@ services:
|
|||
- POSTGRES_HOST=${POSTGRES_HOST:-postgres}
|
||||
volumes:
|
||||
- ./migrations/before:/docker-entrypoint-initdb.d
|
||||
# - postgres_data:/var/lib/postgresql/data
|
||||
|
||||
redis:
|
||||
restart: on-failure
|
||||
|
|
@ -144,8 +143,8 @@ services:
|
|||
- "5001:5001"
|
||||
environment:
|
||||
- OPENAI_API_KEY=${APPFLOWY_AI_OPENAI_API_KEY}
|
||||
- APPFLOWY_AI_SERVER_HOST=${APPFLOWY_AI_SERVER_HOST}
|
||||
- APPFLOWY_AI_SERVER_PORT=${APPFLOWY_AI_SERVER_PORT}
|
||||
- APPFLOWY_AI_DATABASE_URL=${APPFLOWY_AI_DATABASE_URL}
|
||||
|
||||
appflowy_history:
|
||||
restart: on-failure
|
||||
|
|
|
|||
|
|
@ -119,12 +119,9 @@ services:
|
|||
ports:
|
||||
- 5001:5001
|
||||
environment:
|
||||
- VECTOR_STORE_ENABLED=true
|
||||
- OPENAI_API_KEY=${APPFLOWY_AI_OPENAI_API_KEY}
|
||||
- APPFLOWY_AI_SERVER_HOST=${APPFLOWY_AI_SERVER_HOST}
|
||||
- APPFLOWY_AI_SERVER_PORT=${APPFLOWY_AI_SERVER_PORT}
|
||||
- APPFLOWY_DATABASE_URL=postgresql+psycopg://${POSTGRES_USER:-postgres}:${POSTGRES_PASSWORD:-password}@${POSTGRES_HOST:-postgres}:5432/${POSTGRES_DB:-postgres}
|
||||
|
||||
- APPFLOWY_AI_DATABASE_URL=${APPFLOWY_AI_DATABASE_URL}
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
|
|
|
|||
|
|
@ -142,8 +142,8 @@ services:
|
|||
- "5001:5001"
|
||||
environment:
|
||||
- OPENAI_API_KEY=${APPFLOWY_AI_OPENAI_API_KEY}
|
||||
- APPFLOWY_AI_SERVER_HOST=${APPFLOWY_AI_SERVER_HOST}
|
||||
- APPFLOWY_AI_SERVER_PORT=${APPFLOWY_AI_SERVER_PORT}
|
||||
- APPFLOWY_AI_DATABASE_URL=${APPFLOWY_AI_DATABASE_URL}
|
||||
|
||||
appflowy_history:
|
||||
restart: on-failure
|
||||
|
|
|
|||
Loading…
Reference in New Issue