Skip to content

Commit

Permalink
Merge pull request #59 from nipreps/dkr/compose-envs
Browse files Browse the repository at this point in the history
DOCKER: Allow passing envvars when running with compose
  • Loading branch information
mgxd authored Dec 6, 2022
2 parents 1efd7a4 + 9036640 commit 9ad439d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,6 @@ Migas includes the following environmental variables to allow finer control when
| Environmental Variable | Description | Default |
| ---- | ---- | ---- |
| MIGAS_REQUEST_WINDOW | A sliding window for limiting number of queries (in seconds) | 60 |
| MIGAS_REQUESTS_PER_WINDOW | Maximum number of requests per `MIGAS_REQUEST_WINDOW` | 5 |
| MIGAS_MAX_REQUESTS_PER_WINDOW | Maximum number of requests per `MIGAS_REQUEST_WINDOW` | 5 |
| MIGAS_MAX_REQUEST_SIZE | Maximum size of request body | 450 |
| MIGAS_BYPASS_RATE_LIMIT | Avoid requests cap | 0 |
5 changes: 5 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ services:
environment:
MIGAS_REDIS_URI: "redis://cache:6379"
DATABASE_URL: "postgresql+asyncpg://postgres:crumbs@postgres:5432/migas"
MIGAS_REQUEST_WINDOW:
MIGAS_MAX_REQUESTS_PER_WINDOW:
MIGAS_MAX_REQUEST_SIZE:
MIGAS_BYPASS_RATE_LIMIT:
MIGAS_DEBUG:

# Redis in-memory db
cache:
Expand Down

0 comments on commit 9ad439d

Please sign in to comment.