You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.1 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

services:
td-pult:
image: nginx:1.27-alpine
container_name: td-pult
restart: unless-stopped
volumes:
# Ordner-Mount statt Einzeldatei: robuster beim Austauschen der Datei
# und Docker kann nicht versehentlich einen Ordner anlegen.
# In ./site muss eine index.html liegen (= TD-Pult.html umbenannt).
- ./site:/usr/share/nginx/html:ro
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
- ./htpasswd:/etc/nginx/.htpasswd:ro
# Variante A – Portfreigabe (funktioniert immer).
# Nginx Proxy Manager zeigt dann auf http://<Server-IP>:8087
ports:
- "8087:80"
# Variante B – gemeinsames Docker-Netz mit dem Proxy.
# Dann oben "ports" auskommentieren, hier das Netz des Proxys eintragen
# (Name mit docker network ls nachsehen) und im Proxy auf td-pult : 80 zeigen.
# networks:
# - proxy
healthcheck:
test: ["CMD", "wget", "-qO-", "http://127.0.0.1/healthz"]
interval: 30s
timeout: 3s
retries: 3
logging:
driver: json-file
options:
max-size: "5m"
max-file: "3"
# networks:
# proxy:
# external: true

Powered by TurnKey Linux.