Move compose settings to env file
This commit is contained in:
@@ -38,7 +38,7 @@ source .venv/bin/activate
|
||||
pip install -e ".[dev]"
|
||||
```
|
||||
|
||||
### Run
|
||||
### Run Container
|
||||
|
||||
```bash
|
||||
export FLASK_APP=wsgi.py
|
||||
@@ -86,6 +86,12 @@ Open `http://127.0.0.1:8000`.
|
||||
docker compose up --build web
|
||||
```
|
||||
|
||||
Compose settings are stored in `env`. Update that file to change values such as:
|
||||
|
||||
- `SECRET_KEY`
|
||||
- `MAX_UPLOAD_SIZE_MB`
|
||||
- `OUTPUT_DIRECTORY`
|
||||
|
||||
### Run the test suite in a container
|
||||
|
||||
```bash
|
||||
|
||||
11
compose.yaml
11
compose.yaml
@@ -5,15 +5,12 @@ services:
|
||||
target: production
|
||||
ports:
|
||||
- "8000:8000"
|
||||
environment:
|
||||
SECRET_KEY: change-me
|
||||
MAX_UPLOAD_SIZE_MB: "120"
|
||||
OUTPUT_DIRECTORY: /app/instance/outputs
|
||||
env_file:
|
||||
- env
|
||||
|
||||
test:
|
||||
build:
|
||||
context: .
|
||||
target: test
|
||||
environment:
|
||||
MAX_UPLOAD_SIZE_MB: "120"
|
||||
OUTPUT_DIRECTORY: /app/instance/outputs
|
||||
env_file:
|
||||
- env
|
||||
|
||||
Reference in New Issue
Block a user