Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
content:serverbasics:docker-caddy [2024/01/14 14:19] – [Create Caddy Yaml] Danielcontent:serverbasics:docker-caddy [2024/01/18 14:45] (aktuell) – [Create Caddy Yaml] Daniel
Zeile 54: Zeile 54:
       - NET_ADMIN       - NET_ADMIN
     healthcheck:     healthcheck:
-      test: "wget --no-verbose --tries=1 --spider https://obel1x.dynv6.net || exit 1"+      test: "wget --no-verbose --tries=1 --spider https://www.servername.domainname.tld || exit 1"
       interval: "60s"       interval: "60s"
       timeout: "3s"       timeout: "3s"
Zeile 60: Zeile 60:
       retries: 3       retries: 3
 # Be sure, that docker daemon has access to unprivileged ports (beneath 1024) # Be sure, that docker daemon has access to unprivileged ports (beneath 1024)
-Thiscan be done by:+This can be archived by:
 # setcap cap_net_bind_service=+ep /usr/bin/rootlesskit # setcap cap_net_bind_service=+ep /usr/bin/rootlesskit
 # #
-# To access local services take the hostname directly, maybe define it static and add it to /etc/hosts +# To access local servicestake the hostname directly, maybe define it static and add it to /etc/hosts on the host 
-# Mind, that the port must be pubilshed by the other containers to the host via ports or expose, or add them to the network +# Mind, that the ports must be pubilshed by the other containers to the host via ports or expose, or add them to the network 
-# e.g. pcserver:9000 !!! NOT !!! localhost:9000 - this is prevented by docker in rootless- mode ! +# e.g. pcserver:9000 !!! NOT!!! localhost:9000 - this is prevented by docker in rootless- mode ! 
-    network_mode: "host" +#Do NOT use networkmode: "host", this will fail (Acme: Connection refused)! 
-   ports: +   network_mode: "host" 
-     - "80:80" +    ports: 
-     - "443:443" +      - "80:80" 
-     - "443:443/udp"+      - "443:443" 
 +      - "443:443/udp"
  
 volumes: volumes:
Zeile 114: 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.1705241945.txt.gz
  • Zuletzt geändert: 2024/01/14 14:19
  • von Daniel