major refactor of structure for worker V web: docker/app/secrets/envs/...

This commit is contained in:
msramalho
2025-02-10 00:41:50 +00:00
parent a1b730bad4
commit f8c45e2d92
74 changed files with 567 additions and 525 deletions

View File

@@ -1,20 +1,25 @@
services:
web:
command: uvicorn web:app --factory --host 0.0.0.0 --reload
command: uvicorn app.web:app --factory --host 0.0.0.0 --reload
restart: "no"
env_file: src/.env.dev
env_file: .env.dev
volumes:
- ./app:/aa-api/app # for --reload to work
environment:
- SERVE_LOCAL_ARCHIVE=/app/local_archive # See orchestration.yaml local_storage.save_to
- ALLOWED_ORIGINS=http://localhost:8004,chrome-extension://ojcimmjndnlmmlgnjaeojoebaceokpdp
- USER_GROUPS_FILENAME=user-groups.dev.yaml
- DATABASE_PATH=sqlite:////app/auto-archiver.db
- 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/app/database/auto-archiver.db
worker:
#TODO: add watchmedo
restart: "no"
env_file: src/.env.dev
env_file: .env.dev
redis:
command: redis-server /conf/redis.conf --requirepass ${REDIS_PASSWORD}
restart: "no"
env_file: src/.env.dev
env_file: .env.dev
ports:
- 6379:6379