Healthcheck hinzugefügt
This commit is contained in:
Executable
+29
@@ -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: {}
|
||||
Reference in New Issue
Block a user