docker
This commit is contained in:
10
README.md
10
README.md
@@ -23,7 +23,7 @@ npm run start:api
|
||||
npm run start:web
|
||||
```
|
||||
|
||||
Die API laeuft standardmaessig auf `http://localhost:3000`, das Frontend auf `http://localhost:4200`.
|
||||
In der lokalen Entwicklung laeuft die API standardmaessig auf `http://localhost:3000`, das Frontend auf `http://localhost:4200`.
|
||||
|
||||
## Docker Compose
|
||||
|
||||
@@ -39,8 +39,8 @@ Fuer OIDC muessen zusaetzlich `OIDC_ISSUER`, `OIDC_COOKIE_SECRET`, `OIDC_ADMIN_G
|
||||
|
||||
Das Root-`Dockerfile` baut API und Angular in ein einzelnes Image. Der Container startet:
|
||||
|
||||
- NestJS API / IdP auf Port `3000`
|
||||
- Nginx Web-UI auf Port `8080`
|
||||
- Nginx Web-UI und Reverse Proxy auf Port `8080`
|
||||
- NestJS API / IdP nur intern auf Port `3000`
|
||||
|
||||
Build und Push:
|
||||
|
||||
@@ -54,13 +54,11 @@ Start:
|
||||
```bash
|
||||
docker run -d --name ldap-portal-idp \
|
||||
--env-file .env \
|
||||
-e API_BASE_URL=https://id.example.com \
|
||||
-p 3000:3000 \
|
||||
-p 8080:8080 \
|
||||
registry.example.com/ldap-portal/idp:latest
|
||||
```
|
||||
|
||||
`API_BASE_URL` wird beim Containerstart in `/config.js` geschrieben und vom Angular-Frontend gelesen. Setze es auf die aus Browser-Sicht erreichbare API-/IdP-URL.
|
||||
Standardmaessig bleibt `API_BASE_URL` leer. Das Frontend nutzt dadurch relative URLs und Nginx routet API-/OIDC-Pfade intern zur NestJS-API. Setze `API_BASE_URL` nur, wenn das Frontend bewusst eine andere API-Origin verwenden soll.
|
||||
|
||||
## Externe Dienste
|
||||
|
||||
|
||||
Reference in New Issue
Block a user