From da4acfa5eb4d3a8e85a849b0516fc037c833f918 Mon Sep 17 00:00:00 2001 From: Nicolas Gruber Date: Wed, 21 Oct 2026 14:26:12 +0200 Subject: [PATCH] Port 8000 -> 8067 (Docker, Compose, run.py, Caddyfile, README) wegen Port-Kollision --- Caddyfile.example | 6 +++--- Dockerfile | 4 ++-- README.md | 12 ++++++------ docker-compose.yml | 2 +- run.py | 2 +- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/Caddyfile.example b/Caddyfile.example index e994da2..ea5f825 100644 --- a/Caddyfile.example +++ b/Caddyfile.example @@ -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 # } diff --git a/Dockerfile b/Dockerfile index d1c582b..225afdd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] diff --git a/README.md b/README.md index 25b9765..020fbf7 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/docker-compose.yml b/docker-compose.yml index 176afbb..957c931 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 diff --git a/run.py b/run.py index 4753965..6f8d1da 100644 --- a/run.py +++ b/run.py @@ -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)