Port 8000 -> 8067 (Docker, Compose, run.py, Caddyfile, README) wegen Port-Kollision
This commit is contained in:
@@ -17,7 +17,7 @@ python -m venv .venv
|
||||
.venv\Scripts\python run.py
|
||||
```
|
||||
|
||||
Öffne http://127.0.0.1:8000
|
||||
Öffne http://127.0.0.1:8067
|
||||
|
||||
## Konfiguration
|
||||
|
||||
@@ -49,7 +49,7 @@ docker build -t cis-enhanced .
|
||||
|
||||
# Starten (Zugangsdaten aus .env)
|
||||
docker run -d --name cis-enhanced --restart unless-stopped \
|
||||
-p 8000:8000 --env-file .env cis-enhanced
|
||||
-p 8067:8067 --env-file .env cis-enhanced
|
||||
|
||||
# oder mit Compose
|
||||
docker compose up -d --build
|
||||
@@ -57,12 +57,12 @@ docker compose up -d --build
|
||||
|
||||
## Deploy (Caddy)
|
||||
|
||||
App auf Port 8000 starten (z.B. als systemd-Service, oder der Docker-Container
|
||||
portet nach `127.0.0.1:8000`), Caddy davor:
|
||||
App auf Port 8067 starten (z.B. als systemd-Service, oder der Docker-Container
|
||||
portet nach `127.0.0.1:8067`), Caddy davor:
|
||||
|
||||
```ini
|
||||
deinedomain.at {
|
||||
reverse_proxy 127.0.0.1:8000
|
||||
reverse_proxy 127.0.0.1:8067
|
||||
}
|
||||
```
|
||||
|
||||
@@ -75,7 +75,7 @@ After=network.target
|
||||
|
||||
[Service]
|
||||
WorkingDirectory=/pfad/zu/cis-enhanced
|
||||
ExecStart=/pfad/zu/cis-enhanced/.venv/bin/python -m uvicorn app.main:app --host 127.0.0.1 --port 8000
|
||||
ExecStart=/pfad/zu/cis-enhanced/.venv/bin/python -m uvicorn app.main:app --host 127.0.0.1 --port 8067
|
||||
Restart=always
|
||||
User=www-data
|
||||
|
||||
|
||||
Reference in New Issue
Block a user