-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
30 lines (27 loc) · 1.3 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
30 lines (27 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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