Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
content:serverbasics:docker-caddy [2024/01/14 14:19] – [Create Caddy Yaml] Daniel | content: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 |
interval: " | interval: " | ||
timeout: " | timeout: " | ||
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 | + | # 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: |
- | network_mode: | + | #Do NOT use networkmode: |
- | # | + | # |
- | # - " | + | ports: |
- | # - " | + | - " |
- | # - " | + | - " |
+ | - " | ||
volumes: | volumes: | ||
Zeile 114: | Zeile 115: | ||
</ | </ | ||
- | replace mylocalhostname with your actual hostname (can be found out by calling hostname in your terminal). | + | replace |
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 ''/ | 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 ''/ | ||
+ | |||
+ | |||
===== Fetch and run the Caddy Container ===== | ===== Fetch and run the Caddy Container ===== | ||