2026-04-05 18:33:52 -04:00
|
|
|
services:
|
|
|
|
|
atocore:
|
|
|
|
|
build:
|
|
|
|
|
context: ../../
|
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
|
container_name: atocore
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
ports:
|
|
|
|
|
- "${ATOCORE_PORT:-8100}:8100"
|
|
|
|
|
env_file:
|
|
|
|
|
- .env
|
2026-04-08 20:25:32 -04:00
|
|
|
environment:
|
|
|
|
|
# Build provenance — set by deploy/dalidou/deploy.sh on each
|
|
|
|
|
# rebuild so /health can report exactly which commit is live.
|
|
|
|
|
# Defaults to 'unknown' for direct `docker compose up` runs that
|
|
|
|
|
# bypass deploy.sh; in that case the operator should run
|
|
|
|
|
# deploy.sh instead so the deployed SHA is recorded.
|
|
|
|
|
ATOCORE_BUILD_SHA: "${ATOCORE_BUILD_SHA:-unknown}"
|
|
|
|
|
ATOCORE_BUILD_TIME: "${ATOCORE_BUILD_TIME:-unknown}"
|
|
|
|
|
ATOCORE_BUILD_BRANCH: "${ATOCORE_BUILD_BRANCH:-unknown}"
|
2026-04-05 18:33:52 -04:00
|
|
|
volumes:
|
|
|
|
|
- ${ATOCORE_DB_DIR}:${ATOCORE_DB_DIR}
|
|
|
|
|
- ${ATOCORE_CHROMA_DIR}:${ATOCORE_CHROMA_DIR}
|
|
|
|
|
- ${ATOCORE_CACHE_DIR}:${ATOCORE_CACHE_DIR}
|
|
|
|
|
- ${ATOCORE_TMP_DIR}:${ATOCORE_TMP_DIR}
|
|
|
|
|
- ${ATOCORE_LOG_DIR}:${ATOCORE_LOG_DIR}
|
|
|
|
|
- ${ATOCORE_BACKUP_DIR}:${ATOCORE_BACKUP_DIR}
|
|
|
|
|
- ${ATOCORE_RUN_DIR}:${ATOCORE_RUN_DIR}
|
2026-04-06 09:52:19 -04:00
|
|
|
- ${ATOCORE_PROJECT_REGISTRY_DIR}:${ATOCORE_PROJECT_REGISTRY_DIR}
|
2026-04-05 18:33:52 -04:00
|
|
|
- ${ATOCORE_VAULT_SOURCE_DIR}:${ATOCORE_VAULT_SOURCE_DIR}:ro
|
|
|
|
|
- ${ATOCORE_DRIVE_SOURCE_DIR}:${ATOCORE_DRIVE_SOURCE_DIR}:ro
|
|
|
|
|
healthcheck:
|
|
|
|
|
test: ["CMD", "curl", "-fsS", "http://127.0.0.1:8100/health"]
|
|
|
|
|
interval: 30s
|
|
|
|
|
timeout: 10s
|
|
|
|
|
retries: 5
|
|
|
|
|
start_period: 20s
|