Skip to content

Commit

Permalink
chore: fix ai docker compose (#598)
Browse files Browse the repository at this point in the history
  • Loading branch information
appflowy authored Jun 3, 2024
1 parent 45bfcc0 commit da9b9d7
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
1 change: 1 addition & 0 deletions deploy.env
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions dev.env
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions docker-compose-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
5 changes: 1 addition & 4 deletions docker-compose-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit da9b9d7

Please sign in to comment.