Port 8000 -> 8067 (Docker, Compose, run.py, Caddyfile, README) wegen Port-Kollision
This commit is contained in:
+3
-3
@@ -1,12 +1,12 @@
|
|||||||
# Caddyfile für den Deploy auf der Oracle VM
|
# 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 {
|
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):
|
# Optional mit Force-HTTPS-Redirect (Standard bei Caddy ohnehin):
|
||||||
# deinedomain.at {
|
# deinedomain.at {
|
||||||
# encode gzip
|
# encode gzip
|
||||||
# reverse_proxy 127.0.0.1:8000
|
# reverse_proxy 127.0.0.1:8067
|
||||||
# }
|
# }
|
||||||
|
|||||||
+2
-2
@@ -14,6 +14,6 @@ RUN pip install -r requirements.txt
|
|||||||
|
|
||||||
COPY app ./app
|
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"]
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ python -m venv .venv
|
|||||||
.venv\Scripts\python run.py
|
.venv\Scripts\python run.py
|
||||||
```
|
```
|
||||||
|
|
||||||
Öffne http://127.0.0.1:8000
|
Öffne http://127.0.0.1:8067
|
||||||
|
|
||||||
## Konfiguration
|
## Konfiguration
|
||||||
|
|
||||||
@@ -49,7 +49,7 @@ docker build -t cis-enhanced .
|
|||||||
|
|
||||||
# Starten (Zugangsdaten aus .env)
|
# Starten (Zugangsdaten aus .env)
|
||||||
docker run -d --name cis-enhanced --restart unless-stopped \
|
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
|
# oder mit Compose
|
||||||
docker compose up -d --build
|
docker compose up -d --build
|
||||||
@@ -57,12 +57,12 @@ docker compose up -d --build
|
|||||||
|
|
||||||
## Deploy (Caddy)
|
## Deploy (Caddy)
|
||||||
|
|
||||||
App auf Port 8000 starten (z.B. als systemd-Service, oder der Docker-Container
|
App auf Port 8067 starten (z.B. als systemd-Service, oder der Docker-Container
|
||||||
portet nach `127.0.0.1:8000`), Caddy davor:
|
portet nach `127.0.0.1:8067`), Caddy davor:
|
||||||
|
|
||||||
```ini
|
```ini
|
||||||
deinedomain.at {
|
deinedomain.at {
|
||||||
reverse_proxy 127.0.0.1:8000
|
reverse_proxy 127.0.0.1:8067
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -75,7 +75,7 @@ After=network.target
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
WorkingDirectory=/pfad/zu/cis-enhanced
|
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
|
Restart=always
|
||||||
User=www-data
|
User=www-data
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@ services:
|
|||||||
container_name: cis-enhanced
|
container_name: cis-enhanced
|
||||||
env_file: .env
|
env_file: .env
|
||||||
ports:
|
ports:
|
||||||
- "8000:8000"
|
- "8067:8067"
|
||||||
volumes:
|
volumes:
|
||||||
- cis-data:/app/data
|
- cis-data:/app/data
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|||||||
Reference in New Issue
Block a user