Add node label constraint to service placement
All checks were successful
Build and Push Docker Image / build (push) Successful in 1m59s

- Add node label constraint
- Remove redundant constraint
- Update healthcheck start period
- Ensure consistent formatting
- Maintain overlay network driver
This commit is contained in:
2025-02-28 22:08:39 +00:00
parent be8ed1eb89
commit 7f43b94429

View File

@@ -57,13 +57,13 @@ services:
max_attempts: 3
placement:
constraints:
- node.labels.reskreen-ready==true
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
- node.labels.reskreen-ready==true
start_period: 60s
networks:
default:
driver: overlay