docs
This commit is contained in:
@@ -27,6 +27,32 @@ poetry run uvicorn apps.ui.main:app --reload --port 8002
|
||||
poetry run python -m apps.ui.main
|
||||
```
|
||||
|
||||
### Docker Container
|
||||
|
||||
#### Build Image
|
||||
|
||||
```bash
|
||||
docker build -t ui:dev -f apps/ui/Dockerfile .
|
||||
```
|
||||
|
||||
#### Run Container
|
||||
|
||||
```bash
|
||||
docker run --rm -p 8002:8002 \
|
||||
-e UI_PORT=8002 \
|
||||
-e API_BASE=http://localhost:8001 \
|
||||
-e BASE_PATH=/ \
|
||||
ui:dev
|
||||
```
|
||||
|
||||
#### Environment Variables
|
||||
|
||||
| Variable | Default | Description |
|
||||
|----------|---------|-------------|
|
||||
| `UI_PORT` | `8002` | Port for UI server |
|
||||
| `API_BASE` | `http://localhost:8001` | Base URL for API service |
|
||||
| `BASE_PATH` | `/` | Base path for routing |
|
||||
|
||||
## Project Structure
|
||||
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user