mirror of
https://github.com/maxdorninger/MediaManager.git
synced 2026-04-21 16:25:36 +02:00
15 lines
1.4 KiB
Markdown
15 lines
1.4 KiB
Markdown
# Frontend
|
|
|
|
| Variable | Description | Default | Example |
|
|
|----------------------|----------------------------------------------------------------|--------------------------------|-------------------------------------------|
|
|
| `PUBLIC_WEB_SSR` | Enables/disables Server-Side Rendering. (this is experimental) | `false` | `true` |
|
|
| `PUBLIC_API_URL` | You (the browser) mut reach the backend from this url. | `http://localhost:8000/api/v1` | `https://mediamanager.example.com/api/v1` |
|
|
| `PUBLIC_SSR_API_URL` | The frontent container must reach the backend from this url. | `http://localhost:8000/api/v1` | `http://backend:8000/api/v1` |
|
|
|
|
## Build Arguments (web/Dockerfile)
|
|
|
|
| Argument | Description | Example (in build command) |
|
|
|-----------|-----------------------------------------------------------------------------------------------------------|--------------------------------------------------------------|
|
|
| `VERSION` | Sets the `PUBLIC_VERSION` environment variable at runtime in the frontend container. Passed during build. | `docker build --build-arg VERSION=1.2.3 -f web/Dockerfile .` |
|
|
|