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
|
||||||
APPFLOWY_AI_OPENAI_API_KEY=
|
APPFLOWY_AI_OPENAI_API_KEY=
|
||||||
APPFLOWY_AI_SERVER_PORT=5001
|
APPFLOWY_AI_SERVER_PORT=5001
|
||||||
|
APPFLOWY_AI_DATABASE_URL=postgresql+psycopg://postgres:password@postgres:5432/postgres
|
||||||
|
|
||||||
# AppFlowy History
|
# AppFlowy History
|
||||||
APPFLOWY_HISTORY_URL=http://history:50051
|
APPFLOWY_HISTORY_URL=http://history:50051
|
||||||
|
|
|
||||||
1
dev.env
1
dev.env
|
|
@ -101,6 +101,7 @@ CLOUDFLARE_TUNNEL_TOKEN=
|
||||||
# AppFlowy AI
|
# AppFlowy AI
|
||||||
APPFLOWY_AI_OPENAI_API_KEY=
|
APPFLOWY_AI_OPENAI_API_KEY=
|
||||||
APPFLOWY_AI_SERVER_PORT=5001
|
APPFLOWY_AI_SERVER_PORT=5001
|
||||||
|
APPFLOWY_AI_DATABASE_URL=postgresql+psycopg://postgres:password@postgres:5432/postgres
|
||||||
|
|
||||||
# AppFlowy History
|
# AppFlowy History
|
||||||
APPFLOWY_HISTORY_URL=http://history:50051
|
APPFLOWY_HISTORY_URL=http://history:50051
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,6 @@ services:
|
||||||
- POSTGRES_HOST=${POSTGRES_HOST:-postgres}
|
- POSTGRES_HOST=${POSTGRES_HOST:-postgres}
|
||||||
volumes:
|
volumes:
|
||||||
- ./migrations/before:/docker-entrypoint-initdb.d
|
- ./migrations/before:/docker-entrypoint-initdb.d
|
||||||
# - postgres_data:/var/lib/postgresql/data
|
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
|
|
@ -144,8 +143,8 @@ services:
|
||||||
- "5001:5001"
|
- "5001:5001"
|
||||||
environment:
|
environment:
|
||||||
- OPENAI_API_KEY=${APPFLOWY_AI_OPENAI_API_KEY}
|
- 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_SERVER_PORT=${APPFLOWY_AI_SERVER_PORT}
|
||||||
|
- APPFLOWY_AI_DATABASE_URL=${APPFLOWY_AI_DATABASE_URL}
|
||||||
|
|
||||||
appflowy_history:
|
appflowy_history:
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
|
|
|
||||||
|
|
@ -119,12 +119,9 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- 5001:5001
|
- 5001:5001
|
||||||
environment:
|
environment:
|
||||||
- VECTOR_STORE_ENABLED=true
|
|
||||||
- OPENAI_API_KEY=${APPFLOWY_AI_OPENAI_API_KEY}
|
- 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_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:
|
volumes:
|
||||||
postgres_data:
|
postgres_data:
|
||||||
|
|
|
||||||
|
|
@ -142,8 +142,8 @@ services:
|
||||||
- "5001:5001"
|
- "5001:5001"
|
||||||
environment:
|
environment:
|
||||||
- OPENAI_API_KEY=${APPFLOWY_AI_OPENAI_API_KEY}
|
- 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_SERVER_PORT=${APPFLOWY_AI_SERVER_PORT}
|
||||||
|
- APPFLOWY_AI_DATABASE_URL=${APPFLOWY_AI_DATABASE_URL}
|
||||||
|
|
||||||
appflowy_history:
|
appflowy_history:
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue