Port 8000 -> 8067 (Docker, Compose, run.py, Caddyfile, README) wegen Port-Kollision

This commit is contained in:
Nicolas Gruber
2026-10-21 14:26:12 +02:00
parent 5c4c4a2464
commit da4acfa5eb
5 changed files with 13 additions and 13 deletions
+3 -3
View File
@@ -1,12 +1,12 @@
# Caddyfile für den Deploy auf der Oracle VM
# App läuft via uvicorn auf 127.0.0.1:8000, Caddy terminiert TLS.
# App läuft via uvicorn auf 127.0.0.1:8067, Caddy terminiert TLS.
deinedomain.at {
reverse_proxy 127.0.0.1:8000
reverse_proxy 127.0.0.1:8067
}
# Optional mit Force-HTTPS-Redirect (Standard bei Caddy ohnehin):
# deinedomain.at {
# encode gzip
# reverse_proxy 127.0.0.1:8000
# reverse_proxy 127.0.0.1:8067
# }
+2 -2
View File
@@ -14,6 +14,6 @@ RUN pip install -r requirements.txt
COPY app ./app
EXPOSE 8000
EXPOSE 8067
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8067"]
+6 -6
View File
@@ -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
+1 -1
View File
@@ -4,7 +4,7 @@ services:
container_name: cis-enhanced
env_file: .env
ports:
- "8000:8000"
- "8067:8067"
volumes:
- cis-data:/app/data
restart: unless-stopped
+1 -1
View File
@@ -1,4 +1,4 @@
import uvicorn
if __name__ == "__main__":
uvicorn.run("app.main:app", host="127.0.0.1", port=8000, reload=True)
uvicorn.run("app.main:app", host="127.0.0.1", port=8067, reload=True)