Ich wollte nach dieser Anleitung ein Zertifikat erstellen :
In /etc/egroupware-docker/nginx.conf habe ich den Servernamen eingetragen.
Ein
service nginx restart
schlug fehl mit :
Failed to restart nginx.service: Unit nginx.service not found.
docker-compose images
Container Repository Tag Image Id Size
egroupware egroupware/egroupware 23.1 8db88d4855e7 1.291 GB
egroupware-db mariadb 10.6 0616d13b2cc7 396.2 MB
egroupware-nginx nginx stable-alpine 60847f99ea69 48.77 MB
egroupware-push phpswoole/swoole 5.0-php8.1-alpine 9ec57f83a9ca 108.1 MB
egroupware-watchtower containrrr/watchtower latest e7dd50d07b86 14.68 MB
docker-compose ps
Name Command State Ports
egroupware /entrypoint.sh php-fpm --n … Up 9000/tcp
egroupware-db docker-entrypoint.sh mariadbd Up 3306/tcp
egroupware-nginx /docker-entrypoint.sh ngin … Up 127.0.0.1:8080->80/tcp
egroupware-push docker-php-entrypoint /var … Up
egroupware-watchtower /watchtower --schedule 0 0 … Up (healthy) 8080/tcp
Dann ein
docker-compose restart nginx
Restarting egroupware-nginx … done
und
apt install certbot python3-certbot-nginx
Jetzt gibt es einen Service nginx, startet allerdings nicht :
service nginx status
× nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; preset: enabled)
Active: failed (Result: exit-code) since Thu 2024-11-28 14:36:08 CET; 5min ago
Docs: man:nginx(8)
CPU: 17ms
Nov 28 14:36:06 server-05 systemd[1]: Starting nginx.service - A high performance web server and a reverse proxy server…
Nov 28 14:36:06 server-05 nginx[79560]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Nov 28 14:36:06 server-05 nginx[79560]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Nov 28 14:36:07 server-05 nginx[79560]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Nov 28 14:36:07 server-05 nginx[79560]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Nov 28 14:36:08 server-05 nginx[79560]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Nov 28 14:36:08 server-05 nginx[79560]: nginx: [emerg] still could not bind()
Nov 28 14:36:08 server-05 systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
Nov 28 14:36:08 server-05 systemd[1]: nginx.service: Failed with result ‘exit-code’.
Nov 28 14:36:08 server-05 systemd[1]: Failed to start nginx.service - A high performance web server and a reverse proxy server.
Uwe