Compare commits

...

1 Commits

Author SHA1 Message Date
chungyau97 5c18be2078 experiment 1 2023-05-09 12:24:58 +07:00
3 changed files with 83 additions and 12 deletions

View File

@ -1 +0,0 @@
PORT=3000

View File

@ -1,13 +1,61 @@
version: '3.1'
version: '3.9'
networks:
net:
driver: bridge
volumes:
clickhouse_data:
driver: local
index_data:
driver: local
backups:
driver: local
services:
flowise:
image: flowiseai/flowise
restart: always
environment:
- PORT=${PORT}
ports:
- '${PORT}:${PORT}'
volumes:
- ~/.flowise:/root/.flowise
command: /bin/sh -c "sleep 3; flowise start"
server:
image: chroma-server:latest
volumes:
- ./:/chroma
- index_data:/index_data
command: uvicorn chromadb.app:app --reload --workers 1 --host 0.0.0.0 --port 8000 --log-config log_config.yml
environment:
- CHROMA_DB_IMPL=clickhouse
- CLICKHOUSE_HOST=clickhouse
- CLICKHOUSE_PORT=8123
ports:
- 8000:8000
depends_on:
- clickhouse
networks:
- net
clickhouse:
image: clickhouse/clickhouse-server:22.9-alpine
environment:
- ALLOW_EMPTY_PASSWORD=yes
- CLICKHOUSE_TCP_PORT=9000
- CLICKHOUSE_HTTP_PORT=8123
ports:
- '8123:8123'
- '9000:9000'
volumes:
- clickhouse_data:/bitnami/clickhouse
- backups:/backups
- ./config/backup_disk.xml:/etc/clickhouse-server/config.d/backup_disk.xml
- ./config/chroma_users.xml:/etc/clickhouse-server/users.d/chroma.xml
networks:
- net
flowise:
image: flowiseai/flowise
restart: always
environment:
- PORT=${PORT}
ports:
- '${PORT}:${PORT}'
networks:
- net
volumes:
- ~/.flowise:/root/.flowise
command: /bin/sh -c "sleep 3; flowise start"

24
docker/log_config.yml Normal file
View File

@ -0,0 +1,24 @@
version: 1
disable_existing_loggers: False
formatters:
default:
format: '%(asctime)s %(levelname)-8s %(name)-15s %(message)s'
datefmt: '%Y-%m-%d %H:%M:%S'
handlers:
console:
class: logging.StreamHandler
stream: ext://sys.stdout
formatter: default
file:
class : logging.handlers.RotatingFileHandler
filename: chroma.log
formatter: default
loggers:
root:
level: WARN
handlers: [console, file]
chromadb:
level: DEBUG
uvicorn:
level: INFO