mirror of
https://github.com/bellingcat/auto-archiver-api.git
synced 2026-06-07 19:18:34 +03:00
31 lines
1.3 KiB
YAML
31 lines
1.3 KiB
YAML
services:
|
|
web:
|
|
command: uvicorn app.web:app --factory --host 0.0.0.0 --reload
|
|
restart: "no"
|
|
env_file: .env.dev
|
|
volumes:
|
|
- ./app/web:/aa-api/app/web # for --reload to work
|
|
- ./app/shared:/aa-api/app/shared # for --reload to work
|
|
environment:
|
|
- ENVIRONMENT_FILE=.env.dev
|
|
- SERVE_LOCAL_ARCHIVE=/aa-api/app/local_archive # See orchestration.yaml local_storage.save_to
|
|
- ALLOWED_ORIGINS=["http://localhost:8000","http://localhost:8004","http://localhost:8081","chrome-extension://ojcimmjndnlmmlgnjaeojoebaceokpdp"]
|
|
- USER_GROUPS_FILENAME=/aa-api/app/user-groups.dev.yaml
|
|
- DATABASE_PATH=sqlite:////aa-api/database/auto-archiver.db
|
|
|
|
|
|
worker:
|
|
# command: watchmedo auto-restart --patterns="*.py" --recursive --ignore-directories -- celery -- --app=app.worker.main.celery worker -Q high_priority,low_priority --concurrency=${CONCURRENCY} --max-tasks-per-child=100
|
|
command: celery --app=app.worker.main.celery worker -Q high_priority,low_priority --concurrency=${CONCURRENCY} --max-tasks-per-child=100 -O fair
|
|
restart: "no"
|
|
env_file: .env.dev
|
|
volumes:
|
|
- ./app/worker:/aa-api/app/worker # for watchmedo to work
|
|
- ./app/shared:/aa-api/app/shared # for watchmedo to work
|
|
|
|
redis:
|
|
restart: "no"
|
|
env_file: .env.dev
|
|
ports:
|
|
- 6379:6379
|