Files
cairnquire/docker-compose.yml
Tim Bendt 04a1f2bb6d ops design and app
add more comments feature, more tags feature, and other frontend updates
2026-06-09 18:27:59 -04:00

41 lines
1.2 KiB
YAML

services:
app:
build:
context: .
dockerfile: Dockerfile
ports:
- "$PORT:$PORT"
depends_on:
- mailpit
environment:
CAIRNQUIRE_DATABASE_PATH: "/workspace/data/db.sqlite"
CAIRNQUIRE_CONTENT_SOURCE_DIR: "/workspace/content"
CAIRNQUIRE_CONTENT_STORE_DIR: "/workspace/data/files"
CAIRNQUIRE_PUBLIC_ORIGIN: "${CAIRNQUIRE_PUBLIC_ORIGIN:?Set CAIRNQUIRE_PUBLIC_ORIGIN in .env}"
CAIRNQUIRE_EMAIL_SMTP_HOST: "${CAIRNQUIRE_EMAIL_SMTP_HOST:-mailpit}"
CAIRNQUIRE_EMAIL_SMTP_PORT: "${CAIRNQUIRE_EMAIL_SMTP_PORT:-1025}"
CAIRNQUIRE_EMAIL_FROM: "${CAIRNQUIRE_EMAIL_FROM:-notifications@cairnquire.local}"
CAIRNQUIRE_LOG_LEVEL: "${CAIRNQUIRE_LOG_LEVEL:-INFO}"
volumes:
- cairnquire_data:/workspace/data
- ./content:/workspace/content
healthcheck:
test: ["CMD", "curl", "--fail", "http://127.0.0.1:${PORT}/healthz"]
interval: 10s
timeout: 3s
retries: 5
start_period: 5s
mailpit:
image: axllent/mailpit:latest
ports:
- "8025:8025"
- "1025:1025"
environment:
MP_UI_BIND_ADDR: "0.0.0.0:8025"
MP_SMTP_BIND_ADDR: "0.0.0.0:1025"
volumes:
cairnquire_data:
driver: local