Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung | Letzte ÜberarbeitungBeide Seiten der Revision | ||
content:serverbasics:docker-caddy [2024/01/14 14:19] – [Create Caddy Yaml] Daniel | content: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 |
interval: " | interval: " | ||
timeout: " | timeout: " | ||
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 | + | # This can be archived |
# setcap cap_net_bind_service=+ep / | # setcap cap_net_bind_service=+ep / | ||
# | # | ||
- | # To access local services take the hostname directly, maybe define it static and add it to / | + | # To access local services, take the hostname directly, maybe define it static and add it to / |
- | # 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: | + | # e.g. pcserver: |
- | | + | #Do NOT use networkmode: " |
- | # ports: | + | # |
- | # | + | ports: |
- | # | + | |
- | # | + | |
+ | | ||
volumes: | volumes: |