72 lines
2.1 KiB
YAML
72 lines
2.1 KiB
YAML
services:
|
|
meilisearch:
|
|
image: getmeili/meilisearch:v1.57
|
|
environment:
|
|
MEILI_MASTER_KEY: ${MEILI_MASTER_KEY:-devkey}
|
|
MEILI_NO_ANALYTICS: "true"
|
|
volumes:
|
|
- meili_data:/meili_data
|
|
ports:
|
|
- "7700:7700"
|
|
|
|
api:
|
|
build: ./api
|
|
environment:
|
|
JWT_SECRET: ${JWT_SECRET:-change-me-in-production}
|
|
DB_DRIVER: sqlite
|
|
DB_NAME: /data/db/mail-archiver.db
|
|
STORAGE_FILE_PATH: /data/mails
|
|
MEILISEARCH_HOST: http://meilisearch:7700
|
|
MEILISEARCH_API_KEY: ${MEILI_MASTER_KEY:-devkey}
|
|
INITIAL_ADMIN_EMAIL: ${INITIAL_ADMIN_EMAIL:-admin@localhost}
|
|
INITIAL_ADMIN_PASSWORD: ${INITIAL_ADMIN_PASSWORD:-changeme123}
|
|
LISTEN_ADDRESS: ":8080"
|
|
# STORAGE_ENCRYPTION_KEY: set this to encrypt archived .eml files at rest
|
|
volumes:
|
|
- api_db:/data/db
|
|
- mail_data:/data/mails
|
|
ports:
|
|
- "8080:8080"
|
|
depends_on:
|
|
- meilisearch
|
|
|
|
# Each ingester service below is one independent ingester: create it under
|
|
# Settings > Ingesters in the web UI first (this gives you its API key and
|
|
# lets you configure its IMAP poll sources and SMTP listener there), then
|
|
# point a container at it with that key. To run a second ingester, copy
|
|
# this service (new name, new API key, and a different host port if its
|
|
# SMTP listener is enabled) — see e.g. `ingester-2` below (disabled by
|
|
# default; uncomment and set INGESTER_2_API_KEY to use it).
|
|
ingester:
|
|
build: ./ingester
|
|
environment:
|
|
API_BASE_URL: http://api:8080
|
|
API_KEY: ${INGESTER_API_KEY:?set INGESTER_API_KEY to a key created under Settings > Ingesters}
|
|
LOG_LEVEL: INFO
|
|
ports:
|
|
- "2525:2525"
|
|
depends_on:
|
|
- api
|
|
|
|
# ingester-2:
|
|
# build: ./ingester
|
|
# environment:
|
|
# API_BASE_URL: http://api:8080
|
|
# API_KEY: ${INGESTER_2_API_KEY:?set INGESTER_2_API_KEY to a second ingester's key}
|
|
# LOG_LEVEL: INFO
|
|
# ports:
|
|
# - "2526:2525"
|
|
# depends_on:
|
|
# - api
|
|
|
|
frontend:
|
|
build: ./frontend
|
|
ports:
|
|
- "3000:8080"
|
|
depends_on:
|
|
- api
|
|
|
|
volumes:
|
|
meili_data:
|
|
api_db:
|
|
mail_data:
|