Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
Letzte ÜberarbeitungBeide Seiten der Revision
content:serverbasics:docker-caddy [2024/01/14 14:19] – [Create Caddy Yaml] Danielcontent:serverbasics:docker-caddy [2024/01/14 21:17] – [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://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 61:
       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:
  • content/serverbasics/docker-caddy.txt
  • Zuletzt geändert: 2024/01/18 14:45
  • von Daniel