|
|
@@ -514,6 +514,15 @@ The UI also conditionally renders elements based on the cached role in the sessi
|
|
|
|
|
|
Single `.env` file at the repo root, consumed by docker-compose. Each container reads only the variables it needs.
|
|
|
|
|
|
+### Docker host ports (compose only)
|
|
|
+```dotenv
|
|
|
+# Host-side ports for the published service mappings. Container-internal
|
|
|
+# ports stay fixed at 8081 (api) / 8080 (ui); only the host side is
|
|
|
+# remappable. If UI_PORT changes, also update PUBLIC_URL.
|
|
|
+API_PORT=8081
|
|
|
+UI_PORT=8080
|
|
|
+```
|
|
|
+
|
|
|
### Shared (both containers)
|
|
|
```dotenv
|
|
|
# A 32-byte hex string. Used by api to authenticate the ui's calls.
|
|
|
@@ -644,7 +653,7 @@ services:
|
|
|
command: api
|
|
|
env_file: .env
|
|
|
ports:
|
|
|
- - "8081:8081"
|
|
|
+ - "${API_PORT:-8081}:8081"
|
|
|
volumes:
|
|
|
- irdb-data:/data
|
|
|
depends_on:
|
|
|
@@ -662,7 +671,7 @@ services:
|
|
|
build: { context: ./ui }
|
|
|
env_file: .env
|
|
|
ports:
|
|
|
- - "8080:8080"
|
|
|
+ - "${UI_PORT:-8080}:8080"
|
|
|
depends_on:
|
|
|
api:
|
|
|
condition: service_healthy
|