Files
WrenAI/docker/docker-compose-dev.yaml
T
Chih-Yu Yeh cf02536bb9 Feature/wren ai service/demo lab (#128)
* setup duckdb demo dataset testing

* allow demo to use duckdb demo dataset

* remove debug message

* remove unused command

* update wren-ai-service demo setup and README

* reformat sql, prevent duplicating deployment, update sampledata mdl

* update logger setup and fix preview sql issue

* remove psycopg2

* refine demo setup flow

* revert

* remove unused file

* remove unused dep

* change url

* revert

* add TODO for improvement

* update
2024-04-18 15:51:09 +08:00

66 lines
1.4 KiB
YAML

version: '3'
volumes:
data:
networks:
wren:
driver: bridge
services:
bootstrap:
image: ghcr.io/canner/wren-bootstrap:${WREN_BOOTSTRAP_VERSION}
pull_policy: always
platform: ${PLATFORM}
environment:
DATA_PATH: /app/data
PG_USERNAME: ${PG_USERNAME}
PG_PASSWORD: ${PG_PASSWORD}
volumes:
- data:/app/data
command: /bin/sh /app/init.sh
wren-engine:
image: ghcr.io/canner/wren-engine:${WREN_ENGINE_VERSION}
pull_policy: always
platform: ${PLATFORM}
expose:
- ${WREN_ENGINE_SQL_PORT}
ports:
- ${WREN_ENGINE_PORT}:${WREN_ENGINE_PORT}
volumes:
- data:/usr/src/app/etc
networks:
- wren
depends_on:
- bootstrap
wren-ai-service:
image: ghcr.io/canner/wren-ai-service:${WREN_AI_SERVICE_VERSION}
pull_policy: always
platform: ${PLATFORM}
ports:
- ${WREN_AI_SERVICE_PORT}:${WREN_AI_SERVICE_PORT}
environment:
WREN_AI_SERVICE_PORT: ${WREN_AI_SERVICE_PORT}
OPENAI_API_KEY: ${OPENAI_API_KEY}
QDRANT_HOST: qdrant
WREN_ENGINE_ENDPOINT: http://wren-engine:${WREN_ENGINE_PORT}
# sometimes the console won't show print messages,
# using PYTHONUNBUFFERED: 1 can fix this
PYTHONUNBUFFERED: 1
networks:
- wren
depends_on:
- qdrant
- wren-engine
qdrant:
image: qdrant/qdrant:v1.7.4
pull_policy: always
expose:
- 6333
- 6334
networks:
- wren