# docker-compose.yml
version: "3.8"
services:
quickwit:
image: quickwit/quickwit:latest
ports:
- "7280:7280"
- "7281:7281" # gRPC
environment:
QW_METASTORE_URI: postgres://quickwit:quickwit@postgres/quickwit
QW_DEFAULT_INDEX_ROOT_URI: s3://my-bucket/indexes
AWS_REGION: us-east-1
depends_on:
- postgres
postgres:
image: postgres:15
environment:
POSTGRES_DB: quickwit
POSTGRES_USER: quickwit
POSTGRES_PASSWORD: quickwit
volumes:
- pgdata:/var/lib/postgresql/data
volumes:
pgdata:# my-logs-index.yaml
version: 0.7
index_id: my-logs
doc_mapping:
mode: dynamic
field_mappings:
- name: timestamp
type: datetime
formats:
- unix_timestamp
fast: true
- name: level
type: text
tokenizer: raw
fast: true
- name: message
type: text
tokenizer: default
- name: service
type: text
tokenizer: raw
fast: true
indexing_settings:
timestamp_field: timestamp
commit_timeout_secs: 10
search_settings:
default_search_fields:
- message