Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
content:serverbasics:docker-caddy [2024/01/14 21:17] – [Create Caddy Yaml] Danielcontent:serverbasics:docker-caddy [2024/01/18 14:45] (aktuell) – [Create Caddy Yaml] Daniel
Zeile 53: Zeile 53:
     cap_add:     cap_add:
       - NET_ADMIN       - NET_ADMIN
- 
     healthcheck:     healthcheck:
       test: "wget --no-verbose --tries=1 --spider https://www.servername.domainname.tld || exit 1"       test: "wget --no-verbose --tries=1 --spider https://www.servername.domainname.tld || exit 1"
Zeile 69: Zeile 68:
 #Do NOT use networkmode: "host", this will fail (Acme: Connection refused)! #Do NOT use networkmode: "host", this will fail (Acme: Connection refused)!
 #    network_mode: "host" #    network_mode: "host"
-   ports: +    ports: 
-     - "80:80" +      - "80:80" 
-     - "443:443" +      - "443:443" 
-     - "443:443/udp"+      - "443:443/udp"
  
 volumes: volumes:
Zeile 116: Zeile 115:
 </file> </file>
  
-replace mylocalhostname with your actual hostname (can be found out by calling hostname in your terminal).+replace //mylocalhostname// with your actual hostname (can be found out by calling hostname in your terminal).
  
 Don't use localhost - see above. If you do not have a clue which hostname you have, better specify some fixed one which you can freely chose and edit ''/etc/hosts'' to have that name point to your local ip. Don't use localhost - see above. If you do not have a clue which hostname you have, better specify some fixed one which you can freely chose and edit ''/etc/hosts'' to have that name point to your local ip.
 +
 +
 ===== Fetch and run the Caddy Container ===== ===== Fetch and run the Caddy Container =====
  
  • content/serverbasics/docker-caddy.txt
  • Zuletzt geändert: 2024/01/18 14:45
  • von Daniel