Healthcheck hinzugefügt

This commit is contained in:
2026-02-12 10:30:39 +01:00
parent dd8f5411a9
commit 7feca0e9e8
+29
View File
@@ -0,0 +1,29 @@
services:
wordpress:
image: wordpress:latest
container_name: wordpress
labels:
- wud.watch=true
deploy:
resources:
limits:
memory: 1G
volumes:
- ./data:/var/www/html
ports:
- 9080:80
restart: always
environment:
- WORDPRESS_DB_HOST=192.168.178.170
- WORDPRESS_DB_USER=wordpress
- WORDPRESS_DB_PASSWORD=dbpass
- WORDPRESS_DB_NAME=wordpress
- WORDPRESS_REDIS_HOST=192.168.178.183
- WORDPRESS_REDIS_PORT=9379
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost || exit 1"]
interval: 30s
timeout: 10s
retries: 5
start_period: 40s # WP-Setup braucht Zeit
networks: {}