clebreto commited on
Commit
2f4cd12
Β·
1 Parent(s): 2a00bb7

Readme updates and docker compose up

Browse files
Files changed (2) hide show
  1. README.md +14 -0
  2. docker-compose.yml +3 -0
README.md CHANGED
@@ -78,6 +78,20 @@ backend/
78
 
79
  ## Development
80
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
81
  The application is containerized using Docker and can be run using:
82
 
83
  ```bash
 
78
 
79
  ## Development
80
 
81
+ The repositories from which to operate can be parametrized through environment variables:
82
+
83
+ ```bash
84
+ export HF_ORGANIZATION="fr-gouv-coordination-ia"
85
+ export REQUESTS_REPO="requests-dev"
86
+ export RESULTS_REPO="results-dev"
87
+ ```
88
+
89
+ The appropriate token to read and write from these repos should also be set appropriately:
90
+
91
+ ``` bash
92
+ export HF_TOKEN="mytoken"
93
+ ```
94
+
95
  The application is containerized using Docker and can be run using:
96
 
97
  ```bash
docker-compose.yml CHANGED
@@ -13,6 +13,9 @@ services:
13
  - ENVIRONMENT=${ENVIRONMENT:-development}
14
  - HF_TOKEN=${HF_TOKEN}
15
  - HF_HOME=${HF_HOME:-/.cache}
 
 
 
16
  command: uvicorn app.asgi:app --host 0.0.0.0 --port 8000 --reload
17
 
18
  frontend:
 
13
  - ENVIRONMENT=${ENVIRONMENT:-development}
14
  - HF_TOKEN=${HF_TOKEN}
15
  - HF_HOME=${HF_HOME:-/.cache}
16
+ - HF_ORGANIZATION=${HF_ORGANIZATION}
17
+ - REQUESTS_REPO=${REQUESTS_REPO}
18
+ - RESULTS_REPO=${RESULTS_REPO}
19
  command: uvicorn app.asgi:app --host 0.0.0.0 --port 8000 --reload
20
 
21
  frontend: